The difference between ‘return false;’ and ‘e.preventDefault();’ | CSS-Tricks

Updated . Posted . Visible to the public.

The difference is that return false; takes things a bit further in that it also prevents that event from propagating (or “bubbling up”) the DOM.

Last edit
Keywords
javascript
License
Source code in this card is licensed under the MIT License.
Posted by Lexy to makandra dev (2010-07-09 06:36)