[thelist] Javascript: Global variables in external .js?

Danny Goodman dannyg at dannyg.com
Sun Mar 9 09:24:01 CST 2003


on 3/9/03 6:41 AM, thelist-request at lists.evolt.org wrote:

> window.onload=init();

When you define an event handler as a property of an object, the right side
of the expression should be only a reference to the event handler function,
not an invocation of the function. Thus, the above should be:

window.onload = init;

Danny
http://www.dannyg.com




More information about the thelist mailing list