Return to Snippet

Revision: 32559
at September 29, 2010 01:33 by dkl3in


Initial Code
function() {
  return false;
}

// is equal to

function(e) {
  e.preventDefault();
  e.stopPropagation();
}

Initial URL

                                

Initial Description
Alternative for "return false;"
stopPropagation(); prevents for bubbling up the dom
preventDefault();  prevents the browser from performing the default action

Initial Title
Alternative for "return false;"

Initial Tags
js

Initial Language
jQuery