Table of Contents Chapter Index Previous Slide Next Slide 346
Initializing and shutting down within JavaScript

Introducing program script writing with JavaScript
Initializing and shutting down within JavaScript
  • When the script is first loaded, the initialize function is called
    function initialize ( ) {
        . . .
    }

  • Just before the script is unloaded, the shutdown function is called
    function shutdown ( ) { . . . }