SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Wizard dethfire's Avatar
    Join Date
    Aug 2000
    Posts
    2,477
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have two scripts that require body onload. How do I do this?
    Free Science Homework Help
    http://www.physicsforums.com

  2. #2
    Irritability Defined
    Join Date
    Jul 2000
    Location
    80,000 feet below the surface
    Posts
    1,442
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Say you have two onLoad functions, function1 and function2.

    The code would look like :

    <body onload="function1();function2()" blah blah blah>

    Separate multiple functions with a semi-colon, and make sure you've removed other 'onload' calls from within each script to ensure it works.
    My 2 Cents (or is that 2.2 Cents including GST?)


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
  •