Results 1 to 3 of 3

Thread: Body onLoad question

  1. #1
    Join Date
    Sep 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Body onLoad question

    Can I use 2 different BODY onload event handlers inside the body tag? I have one right now and I've tried to add the second one in several different ways, but it won't work. Is this possible?

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Yes and no. You can do this:

    HTML Code:
    <body onload="doThis();doThat();">
    You cannot do this:

    HTML Code:
    <body onload="doThis();" onload="doThat();">
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Sep 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile

    Thanks!!! I tried it as you suggested and it works!

Bookmarks

Posting Permissions

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