> What is a good way to added a javascript event handler to the
> windows.onload event that already has one or more handlers associated
> with it, without impacting them?

I've seen this technique used to, I believe, accomplish what you are
looking to do:

oldOnLoad = window.onload;
if (typeof window.onload != 'function') {
    window.onload = function() {
        // Your handlers go here...
    };
}
else {
    window.onload = function() {
        oldOnLoad();
        // Your handlers go here...
    };
}

See http://simonwillison.net/2004/May/26/addLoadEvent/ for the
original plus discussion.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289764
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to