Sunday, May 19, 2024
 Popular · Latest · Hot · Upcoming
148
rated 0 times [  149] [ 1]  / answers: 1 / hits: 16931  / 15 Years ago, fri, september 25, 2009, 12:00:00

I can add or remove an event handler for a DOM node. Is it possible to find out all the registered events handlers of a given DOM node? I am referring to straight Javascript meaning no frameworks or toolkits like jQuery, dojo, Prototype, GWT, etc. If the answer is no, any reason why? Security issues?


More From » dom

 Answers
9

I know this is an old question, but just in case, for chrome you can use getEventListeners


getEventListeners function


as mentioned here:


https://stackoverflow.com/a/17466308/538752


[#98621] Monday, September 21, 2009, 15 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
louiseb

Total Points: 368
Total Questions: 107
Total Answers: 107

Location: Tanzania
Member since Wed, Feb 24, 2021
3 Years ago
;