disbl rightclick "back" cript not wrking
August 4, 2005 12:00 AM
Don't be so quick to assume you can't copyright javascript code. You can.Use the following code for Internet Explorer. For other browsers you will have to adjust to detect a click event in Mozilla, and the same for a keydown event in Mozilla.var myMessage="Please use navigation controls provided within the program.";var cheaterMessage="Keyboard navigation is not allowed.";function clickIE4() { if (event.button==2) { alert(myMessage); return false; } }function keyCheat() { if (event.keyCode==8) { alert(cheaterMessage); return false; } } document.onmousedown=clickIE4;document.onkeydown=keyCheat;
Discussions have been disabled for this post