tabs.get()

Retrieves details about the specified tab.

Syntax

browser.tabs.get(
  tabId,              // integer
  function(tab) {...} // function
)

Parameters

tabId
integer.
callback
function. The function is passed the following arguments:
tab
tabs.Tab.

Browser compatibility

EdgeFirefoxChromeOpera
Basic support?45.0Yes33
Firefox
Basic supportNo

Examples

Example add-ons

Acknowledgements

This API is based on Chromium's chrome.tabs API. This documentation is derived from tabs.json in the Chromium code.

Document Tags and Contributors

 Contributors to this page: wbamberg
 Last updated by: wbamberg,