simple Body Onload question

Discussion in 'Javascript' started by Raphael Gluck, Oct 24, 2003.

  1. Hi Everyone
    Just a simple question
    If i have more than one Javascript in the head tag, and both have a body
    Onload how do i write the opening body tag?
    do i enter two Onloads? This didnt work for me.
    <body onLoad=" MM_preloadImages(etc...)" onload="runSlideShow()">

    Can i have one onload call both?

    Please help me

    Raphael Gluck, Oct 24, 2003
    1. Advertisements

  2. is this the solution

    <body onLoad=" MM_preloadImages('etc...'); runSlideShow()">

    Raphael Gluck, Oct 24, 2003
    1. Advertisements

  3. Raphael Gluck

    kaeli Guest

    kaeli, Oct 24, 2003
  4. That's one. You can also make a new function that runs all your onload
    functions and call that from onload. This is more useful if you have quite a
    few functions to start (less messy). For example...

    In your script block in the head

    function start()

    and in your body tag

    <body onload="start()">

    .... Hope that helps,

    Nigel Moss.

    Email address is not valid. . Take the dog out! | Boycott E$$O!!
    In the land of the blind, the one-eyed man is very, very busy!
    nice.guy.nige, Oct 26, 2003
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.