Disable Right Click Event on Web Page

Posted by Lakhangarg under JavaScript category on | Views : 2663
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")

Comments or Responses

Login to post response