Sorry if the subject doesn't quite describe what I'm after. Hopefully
the description works better.

Ok, so is there a way to find out all of the events and functions that
have been bound to elements in a page? For example, if you did <body
onload="func()">, or if you did
document.body.addEventListener('load',func(),false). The first being
inline and the second binding the function "func()" to the load event.

I have this code that searches for all inline-defined events, but its
only doing attribute matching and not actually doing anything with the
event object for the page.

$
('*[onabort],*[onblur],*[onchange],*[onclick],*[ondblclick],*[onerror],*[onfocus],*[onkeydown],*[onkeypress],*[onkeyup],*[onload],*[onmousedown],*[onmousemove],*[onmouseout],*[onmouseover],*[onmouseup],*[onreset],*[onresize],*[onselect],*[onsubmit],*[onunload],a[href^="javascript:"]').each(function(i)
{});

Reply via email to