Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 1.24 KB

event-bubbling.md

File metadata and controls

20 lines (15 loc) · 1.24 KB

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...


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.