HTML DOM addEventListener() Method
the same question: bubbling and capturing
Syntax
element.addEventListener(event, function, useCapture)
useCapture:
-
- true - The event handler is executed in the capturing phase
- false- Default. The event handler is executed in the bubbling phase
Test Demo: