I wonder how can I get the list of event listeners for some event?
Suppose I add the event listener to window with this code:
window.addEventListener('click',
function() {
console.log(111);
// a lot of code ...
}, false)
But if I am about to see these listeners with window.onclick
it returns null.
However when I click on the window this event handler fires. Can I see this list with another ways?