This free right click disable javascript will disable the right click popup. Also it will protect your web site content, resources from being copied. This free javascript code can be used in any html page.
Features
This javascript function will disable the right mouse click.
This will stop users from easily stealing your site content using view source.
You can add the message as you wish.
Just copy the code into your page and enjoy the effect.
Preview
Right click is disabled in this page. Test it by right clicking anywhere in this page.
Downloads
Javascript
<!--Script by hscripts.com--> <script type="text/javascript"> <!-- Edit the message as your wish --> var msg_box ="Right click disabled in this page"; function dis_rightclickIE(){
if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) alert(msg_box) } function dis_rightclickNS(e){ if ((document.layers||document.getElementById&&!document.all) && (e.which==2||e.which==3)) { alert(msg_box) return false; } } if (document.layers){ document.captureEvents(Event.MOUSEDOWN); document.onmousedown=dis_rightclickNS; } else if (document.all&&!document.getElementById){ document.onmousedown=dis_rightclickIE;
} document.oncontextmenu=new Function("alert(msg_box);return false") </script> <!-- Script by hscripts.com -->