Jump to content
Mike Needs Help with Medical Bills Read more... ×
Sign in to follow this  

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this