Disable Right Click Event on Web Page

Lakhangarg
Posted by Lakhangarg under JavaScript category on | Views : 2482
Call This in the Head Tag and this code will shows the message Disabled on right click at any where on the web page.

<script language="JavaScript" language="javascript">
var msg="Disabled";
document.oncontextmenu=new Function(" alert(msg);return false")
</script>

Comments or Responses

Login to post response