In addition to all the above, Display objects also have an onClose() event handling function.
Function | Description |
d.onClose(function) | When display d is closed, the system calls the provided function. This function should have zero parameters. It may be used to perform cleanup, play a sound, update other displays, etc. |