Bookmarks tagged [event-bubbling]
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
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