Link Search Menu Expand Document

Root.Close Event


Occurs when the close button in the upper right corner of the root window is pressed.

If this event is caught by the event handler, the operation to close the window will be cancelled. If you want to close the window, delete the Root object in the event handler.

Example

Function OnClose(e) {
    if (...) {
        //.Delete();
    }
}