»
EnglishFrenchVietnamese

Print - Disable right mouse click script - JavaScriptBank.com

Full version: jsB@nk » Security » Mouse » Disable right mouse click script
URL: http://www.javascriptbank.com/disable-right-mouse-click-script.html

Disable right mouse click script © JavaScriptBank.comThis is a cross browser DHTML script that will prevent the default right JavaScript menu from popping up when the right mouse is clicked on the web page. Use it to stop surfers from easily saving your web page, viewing its source, or lifting images off your site when using either IE 4+ or NS 4+. Definitely useful for many site owners

Full version: jsB@nk » Security » Mouse » Disable right mouse click script
URL: http://www.javascriptbank.com/disable-right-mouse-click-script.html



JavaScript
<SCRIPT language=JavaScript type=text/javascript><!--  function opendetailwindow() {     window.open('','detailwindow','toolbar=no,scrollbars=yes,resizable=no,width=680,height=480');  }    function right(e) {    if (navigator.appName == 'Netscape' && (e.which == 2 || e.which == 3)) {      alert('© Copyright by iuem');      return false;    }    else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button==2 || event.button == 3)) {      alert('This script disable right click');      return false;    }    return true;  }  document.onmousedown=right;  if (document.layers) window.captureEvents(Event.MOUSEDOWN);  window.onmousedown=right;// --></SCRIPT><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->