Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

two onload event handlers

RavenRaven Posts: 59Member
how can i put two onload event handlers on one page.
for example:

i would also like to run:
OnLoad="tickinit()"
within the same body tag. I can only seem to get the first one that is typed in to run. it doesn't cause any errors but the second one just won't run althought the colors and sizes all do react as they should.
How do i put two onload event handlers into one page?
Thanks to all who can help.
Raven


Comments

  • JaneHungJaneHung Posts: 1Member
    : how can i put two onload event handlers on one page.
    : for example:
    :
    : i would also like to run:
    : OnLoad="tickinit()"
    : within the same body tag. I can only seem to get the first one that is typed in to run. it doesn't cause any errors but the second one just won't run althought the colors and sizes all do react as they should.
    : How do i put two onload event handlers into one page?
    : Thanks to all who can help.
    : Raven

    Hi Raven,

    Try putting a semicolon after each of your event handlers. If you separate each event handlers with a ";", you can put in as many as you want.

    For example,

    Jane

Sign In or Register to comment.