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. Advertisements

  2. Peter Cartwright

    VK Guest

    self.onload = myFunctionName;
    /*no parenthesis after function name!*/
    VK, Dec 21, 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.