I still can\'t belive this is not possible but is there a way to loop through the dom and see all event handlers attached using \'addEventListener\'. This post and many othe
On Chrome v53 console I tried:
getEventListeners(document);
that returns:
__proto__: Object
and sub elements, not what I'm looking for.
So I've tried:
getEventListeners(window);
that returns
Object {beforeunload: Array[1], load: Array[1]}
That is what I'm looking for. So I think that the correct approach is the Robin like the bird's way:
getEventListeners(myDomElement):
where myDomElement is the targeted object got with standard ways like getElementById etc...