Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
23
rated 0 times [  24] [ 1]  / answers: 1 / hits: 17212  / 14 Years ago, mon, october 11, 2010, 12:00:00

Is there a way to find all of the events for a element in javascript? or a way to unbind all events from a element?



Thanks.


More From » dom-events

 Answers
9

There is not way to do that directly using javascript.



Jquery has a couple of functions to keep track of that data.



One pure way to do that is to change the addEventListener/attachEvent function through prototyping (search about javascript prototype stuff, not the framework).



Or if you have a custom function to hadle adding/removing events you can tune it.



Well, that's it.


[#95353] Friday, October 8, 2010, 14 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ibrahimgilbertoz

Total Points: 420
Total Questions: 112
Total Answers: 92

Location: Bonaire
Member since Sat, May 1, 2021
3 Years ago
;