Instance Method

close

Requests that the window should close.

Declaration

void close();

Discussion

This method has the same behavior as clicking a window’s close button—clicking does not necessarily cause the window to close. After a window closes, the value of all of its properties is undefined and all of its prototype’s methods return undefined.

See Also

Interacting with Windows

activate

Brings the window to the front and gives it keyboard focus.

activeTab

The tab currently being displayed in the window.

openTab

Opens a new tab in the window.

insertTab

Inserts a tab into the window.