karayan
07-26-2003, 02:34 PM
I need to run a function after the document has finished loading, but I CANNOT include the onLoad even handler in the <body> tag. (The reason is, there are times the file will be opened and the javascript will not be loaded at all -- thus, the onLoad handler wil not be found.) So, my script reads like this:
document.captureEvents(Event.LOAD);
document.onLoad = AWS_start();
where AWS_start() is the function I want to run. IE tells me that Event is undefined. Netscape has no problem with the code. What am I doing wrong?
document.captureEvents(Event.LOAD);
document.onLoad = AWS_start();
where AWS_start() is the function I want to run. IE tells me that Event is undefined. Netscape has no problem with the code. What am I doing wrong?