Guest fatespy Posted December 1, 2005 Share Posted December 1, 2005 how to make no right click function in html Link to comment Share on other sites More sharing options...
Chocolate570 Posted December 1, 2005 Share Posted December 1, 2005 It doesn't work in Opera, but insert this onto your page: <script language=JavaScript><!--//Disable right click script III- By Renigade (renigade@mediaone.net)//For full source code, visit http://www.dynamicdrive.comvar 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> Link to comment Share on other sites More sharing options...
Skemcin Posted December 1, 2005 Share Posted December 1, 2005 Please read this post for more information on this topic:http://w3schools.invisionzone.com/index.php?showtopic=779 Link to comment Share on other sites More sharing options...
AboAyoob Posted December 5, 2005 Share Posted December 5, 2005 Thank you so mutch Link to comment Share on other sites More sharing options...
Recommended Posts