Please enable JavaScript to view this site.

Navigation: Advanced topics > Programming topics > Tabs/Sections Javascript API > Tabs methods

Tabs API: enable

Scroll Prev Next More

 

Makes the n-th tab enabled.

Syntax

enable( n )

Arguments

n

a zero-based index of the tab.

Return value

No return value.

Example

Make the fourth tab enabled.

 

var tabs = pageObj.getTabs();
tabs.enable(3);

See also:

RunnerPage object: getTabs

Tabs API: disable

Control object: setEnabled()

About Tabs/Sections API