In safari's (and chrome's) element inspector there's an "Event Listeners" section (in the right frame of the elements tab) that show's the Event Listeners in the document. Is there anything similar in firebug? Also, is it possible to get an element's event listeners using javascript (like elmnt.onclick
, but should work for events added with addEventListener()
as well)?
Asked
Active
Viewed 1,167 times
2

Pointy
- 405,095
- 59
- 585
- 614

some student
- 371
- 1
- 2
- 8
-
1See http://stackoverflow.com/questions/446892/how-to-find-event-listeners-on-a-dom-node – Roatin Marth Jan 12 '11 at 18:15
1 Answers
2
This is available for firebug:
http://getfirebug.com/wiki/index.php/Firebug_Extensions#Eventbug
For your second question, is it possible to get the events added via addEventListener in javascript? Generally it is not. That add-on uses eventlistenerservice
you would need elevated privileges, a signed script and it would still only work in Firefox.

Hemlock
- 6,130
- 1
- 27
- 37