[PENDING: API Module Overview Goes Here]
chrome.tabs API reference
Properties
getLastError
chrome.extensionlastError
Methods
get
void chrome.tabs.get(, integer tabId, function callback)
Undocumented.
A description from the json schema def of the function goes here.
Parameters
- tabId
(
optional Type array of integer )
- Undocumented.
- Description of this parameter from the json schema.
-
- callback
(
optional Type array of function )
- Undocumented.
- Description of this parameter from the json schema.
-
Returns
Callback function
If you specify the callback parameter, it should specify a function that looks like this:
function(Tab tab) {...});
- tab
(
optional Tab array of integer )
- Undocumented.
- Description of this parameter from the json schema.
-
connect
Port chrome.tabs.connect(, integer tabId, string name)
Undocumented.
A description from the json schema def of the function goes here.
Parameters
- tabId
(
optional Type array of integer )
- Undocumented.
- Description of this parameter from the json schema.
-
- name
(
optional Type array of string )
- Undocumented.
- Description of this parameter from the json schema.
-
Returns
- tabId
(
optional Port array of integer )
- Undocumented.
- Description of this parameter from the json schema.
-
Callback function
If you specify the callback parameter, it should specify a function that looks like this:
function(Type param1, Type param2) {...});
getSelected
void chrome.tabs.getSelected(, integer windowId, function callback)
Undocumented.
A description from the json schema def of the function goes here.
Parameters
- windowId
(
optional Type array of integer )
- Undocumented.
- Description of this parameter from the json schema.
-
- callback
(
optional Type array of function )
- Undocumented.
- Description of this parameter from the json schema.
-
Returns
Callback function
If you specify the callback parameter, it should specify a function that looks like this:
function(Tab tab) {...});
- tab
(
optional Tab array of integer )
- Undocumented.
- Description of this parameter from the json schema.
-
getAllInWindow
void chrome.tabs.getAllInWindow(, integer windowId, function callback)
Undocumented.
A description from the json schema def of the function goes here.
Parameters
- windowId
(
optional Type array of integer )
- Undocumented.
- Description of this parameter from the json schema.
-
- callback
(
optional Type array of function )
- Undocumented.
- Description of this parameter from the json schema.
-
Returns
Callback function
If you specify the callback parameter, it should specify a function that looks like this:
function(array of Tab tabs) {...});
- tabs
(
optional Type array of Tab array of integer integer )
- Undocumented.
- Description of this parameter from the json schema.
-
create
void chrome.tabs.create(, object createProperties, function callback)
Undocumented.
A description from the json schema def of the function goes here.
Parameters
- createProperties
(
optional Type array of object )
- Undocumented.
- Description of this parameter from the json schema.
-
- windowId
(
optional Type array of integer )
- Undocumented.
- Description of this parameter from the json schema.
-
- index
(
optional Type array of integer )
- Undocumented.
- Description of this parameter from the json schema.
-
- url
(
optional Type array of string )
- Undocumented.
- Description of this parameter from the json schema.
-
- selected
(
optional Type array of boolean )
- Undocumented.
- Description of this parameter from the json schema.
-
- callback
(
optional Type array of function )
- Undocumented.
- Description of this parameter from the json schema.
-
Returns
Callback function
If you specify the callback parameter, it should specify a function that looks like this:
function(Tab tab) {...});
- tab
(
optional Tab array of integer )
- Undocumented.
- Description of this parameter from the json schema.
-
update
void chrome.tabs.update(, integer tabId, object updateProperties, function callback)
Undocumented.
A description from the json schema def of the function goes here.
Parameters
- tabId
(
optional Type array of integer )
- Undocumented.
- Description of this parameter from the json schema.
-
- updateProperties
(
optional Type array of object )
- Undocumented.
- Description of this parameter from the json schema.
-
- url
(
optional Type array of string )
- Undocumented.
- Description of this parameter from the json schema.
-
- selected
(
optional Type array of boolean )
- Undocumented.
- Description of this parameter from the json schema.
-
- callback
(
optional Type array of function )
- Undocumented.
- Description of this parameter from the json schema.
-
Returns
Callback function
If you specify the callback parameter, it should specify a function that looks like this:
function() {...});
move
void chrome.tabs.move(, integer tabId, object moveProperties, function callback)
Undocumented.
A description from the json schema def of the function goes here.
Parameters
- tabId
(
optional Type array of integer )
- Undocumented.
- Description of this parameter from the json schema.
-
- moveProperties
(
optional Type array of object )
- Undocumented.
- Description of this parameter from the json schema.
-
- windowId
(
optional Type array of integer )
- Undocumented.
- Description of this parameter from the json schema.
-
- index
(
optional Type array of integer )
- Undocumented.
- Description of this parameter from the json schema.
-
- callback
(
optional Type array of function )
- Undocumented.
- Description of this parameter from the json schema.
-
Returns
Callback function
If you specify the callback parameter, it should specify a function that looks like this:
function() {...});
remove
void chrome.tabs.remove(, integer tabId, function callback)
Undocumented.
A description from the json schema def of the function goes here.
Parameters
- tabId
(
optional Type array of integer )
- Undocumented.
- Description of this parameter from the json schema.
-
- callback
(
optional Type array of function )
- Undocumented.
- Description of this parameter from the json schema.
-
Returns
Callback function
If you specify the callback parameter, it should specify a function that looks like this:
function() {...});
detectLanguage
void chrome.tabs.detectLanguage(, integer tabId, function callback)
Undocumented.
detect language of tab.
Parameters
- tabId
(
optional Type array of integer )
- Undocumented.
- Description of this parameter from the json schema.
-
- callback
(
optional Type array of function )
- Undocumented.
- Description of this parameter from the json schema.
-
Returns
Callback function
If you specify the callback parameter, it should specify a function that looks like this:
function(string language) {...});
- language
(
optional Type array of string )
- Undocumented.
- Description of this parameter from the json schema.
-
captureVisibleTab
void chrome.tabs.captureVisibleTab(, integer windowId, function callback)
Undocumented.
Captures the visible area of the visible tab in the given window.
Parameters
- windowId
(
optional Type array of integer )
- Undocumented.
- The target window. If null or undefined, the 'current' window will be assumed.
-
- callback
(
optional Type array of function )
- Undocumented.
- Description of this parameter from the json schema.
-
Returns
Callback function
If you specify the callback parameter, it should specify a function that looks like this:
function(string dataUrl) {...});
- dataUrl
(
optional Type array of string )
- Undocumented.
- a data url encoding of the captured tab.
-
Events
onCreated
chrome.tabs.onCreated.addListener(function(Tab tab) {...});
Undocumented.
A description from the json schema def of the event goes here.
Parameters
- tab
(
optional Tab array of integer )
- Undocumented.
- Description of this parameter from the json schema.
-
onUpdated
chrome.tabs.onUpdated.addListener(function(integer tabId, object changeInfo) {...});
Undocumented.
A description from the json schema def of the event goes here.
Parameters
- tabId
(
optional Type array of integer )
- Undocumented.
- Description of this parameter from the json schema.
-
- changeInfo
(
optional Type array of object )
- Undocumented.
- Description of this parameter from the json schema.
-
- status
(
optional Type array of string )
- Undocumented.
- Description of this parameter from the json schema.
-
- url
(
optional Type array of string )
- Undocumented.
- Description of this parameter from the json schema.
-
onMoved
chrome.tabs.onMoved.addListener(function(integer tabId, object moveInfo) {...});
Undocumented.
A description from the json schema def of the event goes here.
Parameters
- tabId
(
optional Type array of integer )
- Undocumented.
- Description of this parameter from the json schema.
-
- moveInfo
(
optional Type array of object )
- Undocumented.
- Description of this parameter from the json schema.
-
- windowId
(
optional Type array of integer )
- Undocumented.
- Description of this parameter from the json schema.
-
- fromIndex
(
optional Type array of integer )
- Undocumented.
- Description of this parameter from the json schema.
-
- toIndex
(
optional Type array of integer )
- Undocumented.
- Description of this parameter from the json schema.
-
onSelectionChanged
chrome.tabs.onSelectionChanged.addListener(function(integer tabId, object selectInfo) {...});
Undocumented.
A description from the json schema def of the event goes here.
Parameters
- tabId
(
optional Type array of integer )
- Undocumented.
- Description of this parameter from the json schema.
-
- selectInfo
(
optional Type array of object )
- Undocumented.
- Description of this parameter from the json schema.
-
- windowId
(
optional Type array of integer )
- Undocumented.
- Description of this parameter from the json schema.
-
onAttached
chrome.tabs.onAttached.addListener(function(integer tabId, object attachInfo) {...});
Undocumented.
A description from the json schema def of the event goes here.
Parameters
- tabId
(
optional Type array of integer )
- Undocumented.
- Description of this parameter from the json schema.
-
- attachInfo
(
optional Type array of object )
- Undocumented.
- Description of this parameter from the json schema.
-
- newWindowId
(
optional Type array of integer )
- Undocumented.
- Description of this parameter from the json schema.
-
- newPosition
(
optional Type array of integer )
- Undocumented.
- Description of this parameter from the json schema.
-
onDetached
chrome.tabs.onDetached.addListener(function(integer tabId, object detachInfo) {...});
Undocumented.
A description from the json schema def of the event goes here.
Parameters
- tabId
(
optional Type array of integer )
- Undocumented.
- Description of this parameter from the json schema.
-
- detachInfo
(
optional Type array of object )
- Undocumented.
- Description of this parameter from the json schema.
-
- oldWindowId
(
optional Type array of integer )
- Undocumented.
- Description of this parameter from the json schema.
-
- oldPosition
(
optional Type array of integer )
- Undocumented.
- Description of this parameter from the json schema.
-
onRemoved
chrome.tabs.onRemoved.addListener(function(integer tabId) {...});
Undocumented.
A description from the json schema def of the event goes here.
Parameters
- tabId
(
optional Type array of integer )
- Undocumented.
- Description of this parameter from the json schema.
-
Types
Tab
tabId (
optional Type array of object )
Undocumented. Description of this parameter from the json schema. - id
(
optional Type array of integer )
- Undocumented.
- Description of this parameter from the json schema.
-
- index
(
optional Type array of integer )
- Undocumented.
- Description of this parameter from the json schema.
-
- windowId
(
optional Type array of integer )
- Undocumented.
- Description of this parameter from the json schema.
-
- selected
(
optional Type array of boolean )
- Undocumented.
- Description of this parameter from the json schema.
-
- url
(
optional Type array of string )
- Undocumented.
- Description of this parameter from the json schema.
-
- title
(
optional Type array of string )
- Undocumented.
- Description of this parameter from the json schema.
-
- favIconUrl
(
optional Type array of string )
- Undocumented.
- Description of this parameter from the json schema.
-
- status
(
optional Type array of string )
- Undocumented.
- Description of this parameter from the json schema.
-