hwg-basics archives | Sep 2001 | new search | results | previous | next |
Hate that right click menu?by "Captain F.M. O'Lary" <ctfuzzy(at)canopy.net> |
|
Here's a JS that's used to prevent the user from (theoretically) displaying the right-click menu. // No right click function right(e) { if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)) return false; else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) { alert("Copyright (c) 1999-2000 Annoying Online Marketing, LLC. All Rights Reserved."); return false; } return true; } The question is . . . would *you* use it? Why? Fuzzy <inquiring fuzzies want to know!> ______________________________________________________________ Captain F.M. O'Lary ctfuzzy(at)canopy.net I asked Mom if I was a gifted child... she said they certainly wouldn't have paid for me. ------------------------------------------------------------------
HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA