Author Topic: Disable Right Click in template  (Read 2708 times)

Offline d95gas

  • Occasional poster
  • *
  • Posts: 10
    • View Profile
Re: Disable Right Click in template
« on: April 07, 2016, 02:08:19 PM »
Thanks for the quick reply.

I followed your instructions to the letter posting the code as indicated below.   When I open the site (localhost) it will open the page without anything showing on the page other than the header.

<script language="javascript">
document.onmousedown=disableclick;
status="Right Click Disabled";
Function disableclick(e)
{
  if(event.button==2)
   {
     alert(status);
     return false;   
   }
}
</script>



I am obviously missing the point somewhere :-(


Thanks

Follow members gave a thank to your post: