[thelist] JavaScript loading *BEFORE* page load?

E Michael Brandt michael at divaHTML.com
Tue Oct 2 15:18:07 CDT 2007


Or

  window.onload = WindowLoad;

Notice no ()'s' here.



Jon Hughes wrote:
>> Jon Hughes wrote:
>>> window.onload = WindowLoad();
>>>
>> this runs WindowLoad() and then assigns the result to window.onload.
>> you probably meant to say this:
>>
>> window.onload = function() { WindowLoad(); };
> 
> 
> Aha!
> 
> Thank you very much :)
> 
>  - Jon

-- 


E. Michael Brandt

www.divaHTML.com
divaPOP : standards-compliant popup windows
divaGPS : you-are-here menu highlighting
divaFAQ : FAQ pages with pizazz

www.valleywebdesigns.com
JustSo PictureWindow
JustSo PhotoAlbum

--



More information about the thelist mailing list