[Javascript] Handle several window.onload functions

Guillaume javascript at webdesignofficina.com
Tue Jul 5 18:07:51 CDT 2005


Paul,

thanks for this very useful explanations... I just received your two 
mails at the same time...
iI have to dig more deeper into the logic of the first solution, 
meanwhile the second solution was what i was searching for...
Thanks a lot... This all sounds great...
Thanks also for the welcome on list... nice ;)...

Regards,

Guillaume.

> 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
>
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>




More information about the Javascript mailing list