Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Feb 2003
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Multiple onLoad handlers?

    How can I have multiple "onLoad" event handlers attached to my <body> tag?

    Example:

    <body onLoad="UpdateClocks()" onLoad="doPopUp();">

    The above example DOES NOT WORK! How can I get these two handlers to work?

    Any help would be greatly appreciated.


  • #2
    Regular Coder
    Join Date
    Jun 2002
    Posts
    624
    Thanks
    0
    Thanked 0 Times in 0 Posts
    onload="UpdateClocks(); doPopUp();"

  • #3
    Senior Coder
    Join Date
    Jul 2002
    Posts
    1,628
    Thanks
    0
    Thanked 0 Times in 0 Posts
    another method being window.onload in your JS.

  • #4
    New to the CF scene
    Join Date
    Feb 2003
    Location
    delhi
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    another method is that call a function on form onload..then from that function call as many functions as u want.


  •  

    Posting Permissions

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