browserAction.enable()

Enables the browser action for a tab. By default, browser actions are enabled.

Syntax

browser.browserAction.enable(
  tabId // optional integer
)

Parameters

tabIdOptional
integer. The id of the tab for which you want to modify the browser action.

Browser compatibility

EdgeFirefoxChromeOpera
Basic support?45.0Yes33
Firefox
Basic supportNo

Examples

Acknowledgements

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

Document Tags and Contributors

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