views:

92

answers:

1

Is there any way to iterate through all of a node's event handlers?

+3  A: 

Unfortunately, no. Not unless you write a wrapper function that first adds the handler to an array and then adds it to the element.

Gabriel McAdams
I was afraid of that. I noticed that the w3c DOM3 has a eventListenerList but I don't think any browser has implemented it.
Praesagus
Yeah. That'll be nice. Some JS libraries (ASP.Net AJAX for sure) have a way to track these events, but in the past,I have always done it manually.
Gabriel McAdams