About 31,700 results
Open links in new tab
  1. What is event bubbling and capturing? - Stack Overflow

    Jan 6, 2011 · Event bubbling and capturing are two ways of event propagation in the HTML DOM API, when an event occurs in an element inside another element, and both elements have …

  2. How to stop event bubbling on checkbox click - Stack Overflow

    However, I can't figure out how to stop the event bubbling without causing the default click behaviour (checkbox becoming checked/unchecked) to not run. Both of the following stop the …

  3. How to prevent event bubbling in javascript - Stack Overflow

    Jan 18, 2018 · How to prevent event bubbling in javascript Asked 7 years, 10 months ago Modified 2 years, 3 months ago Viewed 19k times

  4. javascript - Event Capturing vs Event Bubbling - Stack Overflow

    The event moves to its bubbling phase and executes doSomething (), which is registered to element2 for the bubbling phase. The event travels upwards again and checks if any ancestor …

  5. Bubbling and capturing with addEventListener - Stack Overflow

    Jan 28, 2012 · I recently discovered the difference between Bubbling and Capturing on DOM events, using javascript. Now I understand how it's supposed to work, but I've found a weird …

  6. javascript - What's the difference between event.stopPropagation …

    1348 stopPropagation prevents further propagation of the current event in the capturing and bubbling phases. preventDefault prevents the default action the browser makes on that event. …

  7. Preventing event bubbling (for javascript onclick events)

    Apr 8, 2013 · 1 If you want to prevent event bubbling and cancel default action then you can return false from the event handler.

  8. javascript - How to stop event propagation with inline onclick ...

    onclick="var event = arguments[0] || window.event; [...]" However, generally speaking you should be avoiding inline event handlers if you need to to anything complicated like stopping …

  9. javascript - How do I prevent a parent's onclick event from firing …

    stopPropagation method prevents the event from bubbling up the DOM tree, preventing any parent handlers from being notified of the event. Keep in mind that it does not prevent others …

  10. javascript - How to stop events bubbling in jQuery? - Stack Overflow

    How do I stop custom event bubbling in jQuery? For example I have this code: