API-Version: 1.9

tabs

tabs is an array like object that can be used to get webviews. tabs also implements all ECMAScript 5 array functions like forEach, map, filter, ...

Source:

Example

// get the second tab
var secondTab = tabs[1];

// iterate over all tabs
tabs.forEach(function(tab) {
     ...
});

Members

<static> current :WebKitWebView

The currently focused webview

Source:

<static> length :Number

Total number of tabs

Source:

<static> number :Number

The number of the currently focused webview

Source:

Methods

<static> nth(number) → {WebKitWebView}

tabs.nth has been deprecated, tabs are now an array-like object, use tabs[n] instead.

Parameters:
Name Type Description
number Number

Number of the tab

Deprecated:
  • Yes
Source:
Returns:

The corresponding WebKitWebView

Type
WebKitWebView