PDA

Click to See Complete Forum and Search --> : HTML <BODY> Question


nmretd
Jun 20th, 2000, 06:05 PM
I am using the following code in the Body section of my HTML code. However, I cannot get both of them to work together. Only the First one works:

<BODY OnLoad="ABC(0)">

<BODY onLoad="XYZ()">


How can I get the 2 to work together ?

nmretd.

Ianpbaker
Jun 20th, 2000, 06:37 PM
Hi nmretd

If you are using Javascript Then why not call a function that calls both the other function one after another.

Alternatly I think you can put a colon Between the two

function callBoth() {
ABC(0);
XYZ();
}

<BODY onload="callBoth()">


OR

<BODY onload="ABC(0);XYZ()">


Hope this helps

Ian

nmretd
Jun 20th, 2000, 07:47 PM
Thanks a lot ianpbaker, that worked fine. I used the following:

<BODY onload="ABC(0);XYZ()">

nmretd.