[Javascript] Handle several window.onload functions
Paul Novitski
paul at novitskisoftware.com
Tue Jul 5 16:37:55 CDT 2005
At 02:14 PM 7/5/2005, Guillaume wrote:
>I'd like some help, point me to a ressource, or help me to build a global
>window.onload function wich could be
>
>function globalWindowOnload() {
>
>window.onload = init;
>window.onload = onClickSlide;
>return false;
>
>}
>window.onload = globalWindowOnload;
Guillaume,
If you already know the list of functions you want to run, you can simply
code one onload "switchboard" in a global location:
window.onload = function()
{
init();
onClickSlide();
etc();
}
The method I suggested earlier today does not require that you anticipate
all the functions you'll be adding to the onload list.
Paul
More information about the Javascript
mailing list