#javascript-code-06-button.js / js
// Bind a click handler to the entire document document.onclick = function(e) { // Normalize the Event objct e = e || window.event; // If a right-click was performmed if ( e.button == 2 ) { // Prevent the default action from occurring e.preventDefault(); return false; } };
(C) Æliens 20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.