[thelist] [JavaScript] event location issue restated

Matt Warden mwarden at gmail.com
Wed Feb 22 13:57:37 CST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tom Dell'Aringa wrote:
> That's a good middle ground solution actually. So it doesn't matter that different script files
> loaded at different times call the addBodyOnload() - they will still queue up no problem with
> stepping on each other? If so that's great and I think I'll do that.

Yeah, that's the idea. Allowing for modification of window.onload event
handlers without messing with other code that needs to modify
window.onload. You can call addBodyOnload without needing to know
anything about any other code on the page 99% of the time. (There of
course are some rare cases, but I have only run into these in thought
experiments.)

- --
Matt Warden
Miami University
Oxford, OH, USA
http://mattwarden.com


This email proudly and graciously contributes to entropy.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFD/MIxrI3LObhzHRMRAg3pAKCmYtRyg6juLlebjhcUDeFo2fqKgACg4APU
9uGoyz/9yzp5nEGJoOXf74U=
=gGBC
-----END PGP SIGNATURE-----



More information about the thelist mailing list