CloseOtherTabs Method (BrowserApplication)

Action

Closes all tabs except the active one. When several tabs are open, Internet Explorer only displays some of the tabs and scroll buttons. This method closes all other tabs except for the selected one, including the tabs that are not currently visible. This method is not supported for mobile web applications.

Syntax

C#
webBrowser.CloseOtherTabs()
VB
webBrowser.CloseOtherTabs()