CloseOtherTabs Method (BrowserApplication)

Class

BrowserApplication.

Availability

This functionality is supported only if you are using the Open Agent.

This method works with the following browsers:
  • Mozilla Firefox
  • Internet Explorer 7.0 or later
  • Google Chrome

Action

Closes all tabs but the selected one.

Syntax

browserWindow.CloseOtherTabs()

Notes

When several tabs are open, the browser only displays some of the tabs and scroll buttons. CloseOtherTabs closes all other tabs except for the selected one, including the tabs that are not currently visible.

Example

InternetExplorer.CloseOtherTabs()