Table of contents
Chapter index
Previous slide
Next slide
408
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