Table of Contents Chapter Index Previous Slide Next Slide 298
Understanding JavaScript Initialization and Shutdown

Introducing Program Script Writing with JavaScript

Understanding JavaScript Initialization and Shutdown
  • 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 ( ) { . . . }