[Greasemonkey] Running before a pre-defined event handler

Johan Sundström oyasumi at gmail.com
Fri Dec 23 14:23:29 EST 2005


> Handler processing order is undefined for event handlers which have
> the same target and the same capture flag. However -- assuming I'm not
> on crack -- the event order otherwise is defined as:
>
> * capture handlers from document root down to element
> * handlers on element (foo.onclick and <foo onclick="...")
> * non-capture handlers from element up to document root

Certainly sounds like the news I want to hear. I'll have to go about another
round of experimentation once I get the time for it; I might have done some
bad debugging in trying to get it to work that way. After all, I believe I wrote
that code way past midnight. :-)

Merry Christmas to you all!

--
 / Johan Sundström, http://ecmanaut.blogspot.com/


More information about the Greasemonkey mailing list