Re: Finding events on a page added using addEventListener

Boris Zbarsky <[email protected]>
Newsgroups gmane.comp.mozilla.devel.dom
Message-ID <[email protected]>
Jon wrote:
> I can't find any interfaces that expose these events

There isn't one.

> Node.prototype.addEventListenerOld = Node.prototype.addEventListener;

Does it work if you do it on, say, HTMLBodyElement instead of Node and then try 
calling addEventListener() on the body?

Note that there is some magic involving trusted/untrusted events which might 
mean that the property lives on objects directly, not on the prototype chain...

-Boris
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.