Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sets the focus on a specified tab in the current session.
Syntax
Microsoft.Apm.focusTab(tabId);
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tabId | String | Yes | Unique identifier of the tab to be focused. |
Return value
None.
Examples
The following examples use the focusTab method to set the focus on a specified tab.
Set a tab in focus using Microsoft.Apm.focusTab(tabId)
Microsoft.Apm.focusTab("tab-id-5);
Set a tab in focus using Microsoft.Apm.getFocusedSession().getTab().focus()
Microsoft.Apm.getFocusedSession().getTab("tab-id-5").focus();