Instance Method

close

Requests that the tab should close.

Declaration

void close();

Discussion

This method behaves like clicking the tab’s close button—it does not necessarily cause the tab to close. After a tab closes, the value of all of its properties is undefined and all of its prototype’s methods return undefined.

See Also

Working with Browser Tabs

activate

Selects the tab.