posted 18 years ago
I modified a page in an old application to add a body tag onload event. However, the body tag onload event does not fire. I traced the problem to the following line in some JavaScript menu code that is being included and executed in the page:
where f31 is a menu function.
If I remove the line to fire the window onload event, the body onload event successfully fires as I would expect. And curiously, if I change the window onload line to:
both the window and body onload events fire but this also results in a (yellow triangle with exclamation point) JavaScript error which is worse than the original problem.
This problem is occurring in IE6. I would appreciate any suggestions as to how to get around this.