tabs.highlight()

Highlights the given tabs.

Syntax

browser.tabs.highlight(
  highlightInfo,         // object
  function(window) {...} // optional function
)

Parameters

highlightInfo
object.
windowIdOptional
integer. The window that contains the tabs.
tabs
array of integer or integer. One or more tab indices to highlight.
callbackOptional
function. The function is passed the following arguments:
window
windows.Window. Contains details about the window whose tabs were highlighted.

Browser compatibility

EdgeFirefoxChromeOpera
Basic support?45.0YesNo
Firefox
Basic supportNo

Examples

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,