Question : Onload javascript problems

I have some functions right in the code and a javascript menu being called from outside.  The problem I seem to be having is that I have onload=switchEmail('City1') in the body and if I try to put the code that calls the menu just below the body (or anywhere else) the onLoad doesn't seem to work.

This is the code
--------------------------------------------------------------------------------------------------------------------










) leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="#FFFFFF">


If I remove the onLoad the menu will work and vice versa how could I get both to work?

LAter

Thanks

Answer : Onload javascript problems

If you do infact need to add to the onload function rather than overwrite it, here is how you do it:




**********************************************

Place THIS script BELOW the menu script. DO NOT put anything into the onload for the body. Anything new that you want to do when the body loads, you'll want to put into the doOnLoad function as I have done.
Random Solutions  
 
programming4us programming4us