topical media & game development

talk show tell print

#javascript-code-08-stopDefault.js / js



  function stopDefault( e ) {
      // Prevent the default browser action (W3C)
      if ( e ) e.preventDefault();
  
      // A shortcut for stoping the browser action in IE
      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.