Results 1 to 3 of 3

Thread: how to combine "two onLoad events"

  1. #1
    Join Date
    Mar 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default how to combine "two onLoad events"

    I have to run following two online events:
    <body onLoad="window.defaultStatus='bla bla'">
    <body onLoad="stopHot()">

    How do I do this?

    Do you think the following code will work?
    <body onLoad="window.defaultStatus='bla bla'; stopHot()">

    Any suggestion will be appreciated. Thanks!

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Yes your solution will work. Simply separate each function with a semicolon as you've donw above.

  3. #3
    Join Date
    Mar 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thank you!

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
  •