How to find the EventHandler

saiboot <[email protected]> Thu, 20 Mar 2008 19:58:48 +0100
Newsgroups gmane.comp.mozilla.devel.java
Message-ID <a9ydnRaujtfXLn_anZ2dnUVZ_veinZ2d__11382.6648834676$1206039670$gmane$org@mozilla.org>
Hi all,

I'm writing a Java program to extract some informations from an HTML 
page accessing to its DOM.
I'd like to know, if is possible, the name of the JavaScript function 
associated to an event of a DOM's element through addEventLIstener.

In example, given a node "node" in an HTML page, a JavaScript function 
"j_function" associated to that node on the click event via JavaScript 
through the code
node.addEventListener("click","j_function();",true);
I want, analizing the DOM, to find the name of the function "j_function" 
and the event "click" of the eventListener registered on "node".

At the moment using the interface nsIDOM3EventTarget whith its method 
isRegisteredHere, I'm able to know if an eventListener for a given event
is registerd on a node but I can't find the name of the function of the 
listener.

Have you any suggest for me?

Many thanks