Hello,
I've been working hard trying to figure out if it's possible to include two event handlers in the <Body> tag. Both need to be executed using the onLoad command. Currently, these are the two functions I want to load when the document loads...
doPopup()
arpInit();
My body tag looks like this: <BODY onLoad="doPopup()">
Since I need to include the second command into the tag, I modified it to look like this:
<BODY onLoad="doPopup()" onLoad="arpInit();">
But it seems that JavaScript cannot handle two "onLoad" commands in the same tag. Then I tried:
<BODY onLoad="doPopup()","arpInit();">
That didn't work either. You see, it works perfectly if I just do one or the other, but I would really like to find a way to have both load up. Is there any way?
Can you help me with this?
Sincerely,
Jaime Ojeda
I've been working hard trying to figure out if it's possible to include two event handlers in the <Body> tag. Both need to be executed using the onLoad command. Currently, these are the two functions I want to load when the document loads...
doPopup()
arpInit();
My body tag looks like this: <BODY onLoad="doPopup()">
Since I need to include the second command into the tag, I modified it to look like this:
<BODY onLoad="doPopup()" onLoad="arpInit();">
But it seems that JavaScript cannot handle two "onLoad" commands in the same tag. Then I tried:
<BODY onLoad="doPopup()","arpInit();">
That didn't work either. You see, it works perfectly if I just do one or the other, but I would really like to find a way to have both load up. Is there any way?
Can you help me with this?
Sincerely,
Jaime Ojeda
Comment