Multiple onLoad 2

By Simon Willison on Jun 29, 2007

General

Need to load several functions after the page loads? Use this snippet to call several functions using the onLoad event handler. Easy to use.


Notes

See the notes at: “Executing JavaScript on Page Load

Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: multipleOnload.js and load it last. Or, if you use one file for several scripts, you can add it to the bottom of page.


Head

Paste this code into the HEAD section of your HTML document.