Javascripts > Javascript Alerts > No Right Click Withought Alert
Script Title: No Right Click Withought Alert
Description: This script disables the right-click function and does not display any annoying warning signs. Compatible with; IE7, Firefox 2, Netscape...
Example: Available
Copy the following code into your <HEAD></HEAD> tags.<script type="text/javascript"> <!-- //(c) Ian Muscat 2007 function IE(e) { if (navigator.appName == "Microsoft Internet Explorer" && (event.button == "2" || event.button == "3")) { return false; } } function NS(e) { if (document.layers || (document.getElementById && !document.all)) { if (e.which == "2" || e.which == "3") { return false; } } } document.onmousedown=IE;document.onmouseup=NS;document.oncontextmenu=new Function("return false"); //--> </script>
Enter your name and email address to have this script sent right to your Inbox for later viewing. First Name Last Name Email