How to disable right clicking in Firefox browser?
A little less than five years ago I found the following java script which I've copied and pasted into my pages ever since, to disable right-clicking when those pages are viewed using either IE or Netscape. How do I amend or replace this java script to continue to disable right-clicking by users of IE and Netscape and, at the same time, disable it by users of the new Firefox browser?
Here's the javascript:
__________
<SCRIPT LANGUAGE="JavaScript1.1">
<!-- Original: Martin Webb (martin@irt.org) -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
function right(e) {
if (navigator.appName == 'Netscape' or 'Mozilla Firefox' &&
(e.which == 3 || e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' &&
(event.button == 2 || event.button == 3)) {
alert("Please respect copyright.");
return false;
}
return true;
}
document.onmousedown=right;
document.onmouseup=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
window.onmousedown=right;
window.onmouseup=right;
// End -->
</script>
_____________
Mark Ladenson
To see my photographs of great jazz artists (taken for the most part at the
Chicago Jazz Festival), and for the Bird-KLON archive, visit my website:
http://www.geocities.com/ladenso1/index.html
I also have two exhibits on allaboutjazz.com about, respectively, the 1990
and 2002 Chicago Jazz Festivals:
http://www.allaboutjazz.com/gallery/mladenson.htm
http://www.allaboutjazz.com/gallery/mladenson2002.htm
And for excellent photos of Everglades birds visit:
http://www.msu.edu/user/ladenso1/EvergladesBirds.html
Bookmarks