From Overview of Basic JavaScript -- Web Scripting Language CPS616 Technologies of the Information Age -- Spring Semester 98. byTom Scavo,Geoffrey C. Fox
The onLoad event handler is triggered when a page is loaded or reloaded : <BODY onLoad="aFunction()"> The onUnload handler is called when a page is exited