Hi, I don't want that little menu (the browser one, that has copy, past, etc to drop down when i right click on my page. I have seen sites that have it disabled, how do I do that?
Search Google for "disable right mouse click", and just remove the alert() line from the code (if any). This should do it...
Use this javascript code... <SCRIPT TYPE="text/javascript"> <!-- //Disable right click script //visit rainbow.arch.scriptmania.com/scripts/ var message="Sorry, right-click has been disabled"; /////////////////////////////////// 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> Source: rainbow.arch.scriptmania.com/scripts/no_right_click.html Cheers, Mohsin
just in case... remember that if you plan to not enable people get your source code or copy a picture it is on the long run, impossible. it would be sucessfull for complete noobies but that's about it.