This trick disables the right click on your web page . It is tested on IE and works fine.. Here is the code:
<SCRIPT language=”JavaScript”>
<!–
var message=”Put here the text you want to display when you right click”;
function click(e) {
if (document.all) {
if (event.button==2||event.button==3) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
// –>
</SCRIPT>
[...]
-
‹ Home
-
Categories
-
Tags
acrobat adobe amazon apple basic of computer CSS css3 current news David Hill delete dell escape google Hack HP IBM IE interesting news internet IT Javascript keyboard knowledge laptop lenovo miscellaneos tricks mouse event mozilla firefox Netezza Corp news News and Alerts onmouseout onmouseover opera oracle PC pdf Robin Johnson safari shortcuts sun microsystems Teradata Corp Tips and tricks windows yahoo
-
Archives
-
RSS Feeds
-
Account