![]() |
Retrieve added events? (debug purposes)
While debugging a script, I found that I need to try and verify which if any event listeners are added to an event target, and looking at the standard event handler assignment yields undefined. For example:
Code:
var el = document.getElementById('el');Thanks in advance. |
There is no accessible list of the event handlers, no. In some areas the DOM event model has holes large enough to get an Airbus through. The event handler has been assigned because no exception has been thrown. To try to see whether they work, trigger the even and let each event handler report to you.
|
| All times are GMT +1. The time now is 05:49 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.