Tuesday, 30 July 2013

Right click not working in the web page

Right click not working in the web page 



Keep this in java script or header
<head runat="server">
    <SCRIPT language=JavaScript>
<!--       http: //www.spacegun.co.uk -->
       var message = "function disabled";
       function rtclickcheck(keyp) {
           if (navigator.appName == "Netscape" && keyp.which == 3) { alert(message); return false; }
           if (navigator.appVersion.indexOf("MSIE") != -1 && event.button == 2) { alert(message); return false; }
       }
       document.onmousedown = rtclickcheck;
</SCRIPT>

</head>



No comments:

Post a Comment

Receive All Free Updates Via Facebook.