Action
Closes the specified tab. If no tab is specified, the active tab is closed. When several tabs are open, Internet Explorer
only displays some of the tabs and scroll buttons. As a result, only the currently visible tabs work with this method, which
affects index semantics. For example, only the currently visible tabs can be closed. Index 0 identifies the first visible
tab. This method is not supported for mobile Web applications.
Syntax
C#
result = webBrowser.CloseTab([tab])
VB
result = webBrowser.CloseTab([tab])
Variable |
Description |
result |
The active BrowserWindow after closing the tab. BrowserWindow.
|
tab |
Optional: The tab to close. A tab name may contain the wildcards '*' and '?'. ItemIdentifier.
|