Find Article
Tuesday, March 15, 2011
Don't let the user use right click on mouse
You can lock the right click mouse and user or visitors can not copy and paste the info on your website
<!-- this script got from www.javascriptfreecode.com-Coded by: Krishna Eydat --><SCRIPT LANGUAGE="JavaScript">var message="Function Disabled!";///////////////////////////////////function clickIE() {if (document.all) {alert(message);return false;}}function clickNS(e) {if (document.layers||(document.getElementById&&!document.all)) {if (e.which==2||e.which==3) {alert(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><font face="Tahoma"><a target="_blank" href="http://www.javascriptfreecode.com/"><span style="font-size: 8pt; text-decoration: none">JavaScript Free Code</span></a></font>
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment