Search.../

id

Gets the tab's ID.

Description

The ID is the tab's unique identifier. It's used when selecting a tab with the $w() function. By default, tab IDs are #singleTab1, #singleTab2, and so on.

Type:

stringRead Only

Was this helpful?

Get the current tab and its ID

Copy Code
1let myCurrentTab = $w("#myTabsElement").currentTab;
2
3let myTabId = myCurrentTab.id; // "singleTab2"