Right click not working in the web page
<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>
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