26 Sep 2022 09:29 AM - last edited on 28 Sep 2022 06:39 AM by Ana_Kuzmenchuk
So far so good but now, we can also do below.
And what is the difference between "event capture" and "global event capture" (both contain "Click")?
Who can explain above to me?
Solved! Go to Solution.
I reached out to some colleagues internally to get an idea behind this.
Global event capture registers a new listener on the "document" object of the page to capture fired events.
The addEventListener Module above that was created walks through the DOM and registers the listeners directly on specific events (instead of registering 1 listener on the document itself, adds all the listeners on buttons, inputs elements, etc)