Results 1 to 3 of 3

Thread: HTML <BODY> Question

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 1999
    Location
    London, England
    Posts
    213
    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.

  2. #2
    Fanatic Member Ianpbaker's Avatar
    Join Date
    Mar 2000
    Location
    Hastings
    Posts
    696

    Wink

    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
    Yeah, well I'm gonna build my own lunar space lander! With blackjack aaaaannd Hookers! Actually, forget the space lander, and the blackjack. Ahhhh forget the whole thing!

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Sep 1999
    Location
    London, England
    Posts
    213
    Thanks a lot ianpbaker, that worked fine. I used the following:

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

    nmretd.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width