Use the following instructions to close an open window.
Type in the window.open command and input the name of the selection source.
Type in the window.close command to exit the chosen the window.
How these commands work depends on the platform the script is on. Mozilla Firefox, for example, will only allow window.close scripts if the procedure has called them to open.Learn more about Computer Programming