<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!
<script language="Javascript1.2"> // (C) 2000 www.CodeLifter.com // Free for all users, but leave in this header // Set the message for the alert box am = "Nie możesz skopiować strony.\n (tlosek@interia.pl)"; // do not edit below this line // =========================== bV = parseInt(navigator.appVersion) bNS = navigator.appName=="Netscape" bIE = navigator.appName=="Microsoft Internet Explorer" function nrc(e) { if (bNS && e.which > 1){ alert(am) return false } else if (bIE && (event.button >1)) { alert(am) return false; } } document.onmousedown = nrc; if (document.layers) window.captureEvents(Event.MOUSEDOWN); if (bNS && bV<5) window.onmousedown = nrc; </script>