alternative to body onload=""

Discussion in 'Javascript' started by Peter Cartwright, Dec 21, 2003.

  1. Is there a functional equivalent to <body onload="function call" in the main script.

    Can one do something like document.body.onload=function call?
    Peter Cartwright, Dec 21, 2003
    #1
    1. Advertising

  2. Peter Cartwright

    VK Guest

    self.onload = myFunctionName;
    /*no parenthesis after function name!*/
    VK, Dec 21, 2003
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Fabio R.
    Replies:
    0
    Views:
    795
    Fabio R.
    Mar 25, 2005
  2. Rich
    Replies:
    2
    Views:
    102
  3. David Otton

    window.onload and body.onload differences

    David Otton, Nov 4, 2004, in forum: Javascript
    Replies:
    2
    Views:
    547
    Martin Honnen
    Nov 4, 2004
  4. Replies:
    5
    Views:
    258
    Thomas 'PointedEars' Lahn
    May 15, 2005
  5. marco

    onload -->* no onload

    marco, Jun 22, 2006, in forum: Javascript
    Replies:
    7
    Views:
    202
    marco
    Jun 24, 2006
Loading...

Share This Page