Event Propagation: Bubbling & Capturing
1st pass: Capturing
By default, no event will be fired in this phase. Change this by passing true
as 3rd parameter to addEventListener()
Parent
↓
Target
2st pass: Bubbling
By default, event will be fired. Change this by passing true
as 3rd parameter to addEventListener()
Parent
↑
Target
How to stop this mechanism:
- event.stopPropagation()