Window.close

Function/Meaning
Closes the window
Type
Method of the Window class
Syntax
close()
Arguments
None
Return Value
None (void)
Description
Closes the window displayed by the Window.showModal method. Before the window closes, the Window.onCloseQuery event occurs, allowing you to confirm whether the window can be closed.
Reference
Window.showModal
Window.onCloseQuery