event-bubbling.md
July 15, 2021 · View on GitHub
Bookmarks tagged [event-bubbling]
www.codever.land/bookmarks/t/event-bubbling
Checking event target selectors with event bubbling in vanilla JavaScript
https://gomakethings.com/checking-event-target-selectors-with-event-bubbling-in-vanilla-javascript/
Event bubbling is an approach to listening for events that’s better for performance and gives you a bit more flexibility.
Instead of adding event listeners to specific elements, you listen to all eve...
- tags: event-bubbling, javascript
Bubbling and capturing
https://javascript.info/bubbling-and-capturing#bubbling
The bubbling principle is simple.
When an event happens on an element, it first runs the handlers on it, then on its parent, then all the way up on other ancestors.
- tags: javascript, event-bubbling, html