With the code below, you may modify it to become code to detect the onmouseclick on the document.body and do some action after that.
<HTML><HEAD> <script language="javascript"> function click(e) { if (navigator.appName == 'Netscape' && e.which == 3) { alert("no right click please") return false; } else { if (navigator.appName == 'Microsoft Internet Explorer' && event.button==2) alert("no right click please") return false; } return true; } document.onmousedown=click </script> </HEAD> <BODY> No right mouse button here! </BODY></HTML>
No comments:
Post a Comment