[thelist] [JS] window.onload is a liar...

Hassan Schroeder hassan at webtuitive.com
Mon Mar 15 20:59:45 CST 2004

Tom Dell'Aringa wrote:

> I'm trying to use window.onload but it doesn't function correctly. It
> tells me that my form isn't loaded when I call my function like so:
> window.onload = BuildSelect(arr);

Uh, you need to supply a reference to a function, as in

window.onload = BuildSelect;

But you're invoking the function immediately, before the page loads...

Hassan Schroeder ----------------------------- hassan at webtuitive.com
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

                           dream.  code.

More information about the thelist mailing list