Chapter 9: Handling Events

Return to Chapter 9

 

To use this script on your own page, click in the text area below, select all, and copy to grab the script. Then, just paste into your own page — and you're done.

Handling Window Events: onload

See it run: Handling Window Events: onload

Script 9.1

This is the HTML file for the multiple onload example.

Script 9.2

This JavaScript sets multiple onload attributes using a function.