Showing posts with label event-propagation. Show all posts
Showing posts with label event-propagation. Show all posts

Sunday, May 27, 2012

event.preventDefault() vs. return false


When I want to prevent other event handlers from executing after a certain event is fired, I can use one of two techniques. I'll use jQuery in the examples, but this applies to plain-JS as well: