From: Peter H. <ph...@ma...> - 2007-09-05 14:07:02
|
On Tue, Sep 04, 2007 at 01:37:36PM -0400, Kenneth Downs wrote: > I cannot seem to figure out which javascript function I would use to > determine the event listeners that have been added to an element. Can > anybody steer me on this? Thanks... There isn't one in the current DOM, though a future standard (DOM Level 3 Events) will add support for it. One grace is that addEventListener and removeEventListener are idempotent -- so it doesn't matter whether there already is or isn't an event attached when you attempt to add/remove. http://www.howtocreate.co.uk/tutorials/javascript/domevents is a well-written and up-to-date overview of JS event support. And jQuery ( http://jQuery.com ) is my Javascript library of choice for abstracting away the cross-browser frustrations. -- Peter Harkins - http://push.cx - http://NearbyGamers.com |