Jump to content

Archived

This topic is now archived and is closed to further replies.

Mopar1973Man

Stopping right clicking...

Recommended Posts

Here you go if you guys are looking for a way to stop people from right clicking on your web pages and taking your information here is a way to stop it...

<script language=JavaScript><!--//Disable right click script III- By Renigade ([EMAIL="renigade@mediaone.net"]renigade@mediaone.net[/EMAIL])//For full source code, visit [URL]http://www.dynamicdrive.com[/URL]var message="";///////////////////////////////////function clickIE() {if (document.all) {(message);return false;}}function clickNS(e) {if (document.layers||(document.getElementById&&!document.all)) {if (e.which==2||e.which==3) {(message);return false;}}}if (document.layers) {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}document.oncontextmenu=new Function("return false")// --> </script>
It work great there is no warning message or nothing... :cool:

Share this post


Link to post
Share on other sites



×