Hello
I have a situation where a page is being loaded in a template system, where the header is loaded, then the page content, then finally the footer.
In this particular case, the header includes a cascading menu, generated by Javascript and when I go through the source for this menu, there is some OnLoad calls :
for(a=1;a<menus;a++){dmenu
("menu"+a)
}
if(mac45)Oload=window.onLo
ad; else Oload=window.onload;
function mOL(){if(!ns61&&ns6||ns6hi
f){Minit()
}MLoaded=1
;if(Oload)
Oload();MS
can()}
if(!ns61&&ns6||ns6hif){win
dow.onload
=mOL;}else
{Minit();w
indow.onlo
ad=mOL;}
Now, as part of the page content, there is an OnLoad call in the body tag :
<BODY onLoad="run_my_function();
">
In Netscape, Mozilla and Opera, the page loads correctly and the browser displayes the cascading menu correcty and also runs the function in the BODY tag, which pre-selects some select/drop-down boxes on the page.
In IE, it seems to only load the menu but will not run the onLoad command that is specified in the BODY tag.
The only difference between this page and other page is that this header has some OnLOAD commands in it and my theory is that this is causing the problem with IE. After reading other threads about IE's onLoad support in other pages, could this be another bug in their onLoad support?
And more importantly, do you know of anyway around this or ways I can force IE to run the onLOAD in the body tag aswell?
I have tried moving my onLoad function in and out of the <head></head> component of the page and even a simple ALERT() will not run successfully.
Thank you very much for any tips or advice you can give me :)
Start Free Trial