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.
Printable View
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.
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
Thanks a lot ianpbaker, that worked fine. I used the following:
<BODY onload="ABC(0);XYZ()">
nmretd.