browserAction.disable()

Disables the browser action for a tab.

Syntax

browser.browserAction.disable(
  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,