Table of Contents
Chapter Index
Previous Slide
Next Slide
346
Shutting down a program script
Writing program scripts with JavaScript
Shutting down a program script
The optional
shutdown
function is called when the script is unloaded
function shutdown ( ) { . . . }
Shutdown occurs when:
the
Script
node is deleted
the browser loads a new world