Last updated 2 years ago
Was this helpful?
โฉ โฉ โฉ โฉ โฉ capturing handler
set the third argument to to true:
// capturing event handler ----------------> โญโโโฎ container.addEventListener("click", handler, true);
If you want to a , you must also pass true as the third argument to .
// remove capturing handler ------------------> โญโโโฎ container.removeEventListener("click", handler, true);