tabs.duplicate()

Duplicates a tab.

Syntax

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

Parameters

tabId
integer. The ID of the tab which is to be duplicated.
callbackOptional
function. The function is passed the following arguments:
tabOptional
tabs.Tab. Details about the duplicated tab. The tabs.Tab object only contains url, title and favIconUrl if the extension has the "tabs" permission.

Browser compatibility

EdgeFirefoxChromeOpera
Basic support?47.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,