HTML DOMaddEventListener()Method
the same question:bubbling and capturing
Syntax
element.addEventListener(event,function,useCapture) useCapture: true - The event handler is executed in the capturing phasefalse- Default. The event handler is executed in the bubbling phaseTest Demo:
/kkcodin/L3qo8ocp/