Friday, January 2, 2015

Disable Right Click


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



<body oncontextmenu="return false">
...
</body>

No comments :

Post a Comment