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:
Ccna final exam - java, php, javascript, ios, cshap all in one. This is a collaboratively edited question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
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
Subscribe to:
Posts (Atom)