browserAction.setTitle()

Sets the browser action's title. This will be displayed in a tooltip.

Syntax

browser.browserAction.setTitle(
  details // object
)

Parameters

details
object.
title
string. The string the browser action should display when moused over.
tabIdOptional
integer. Sets the title only for the given tab. The title is reset automatically when the tab is closed.

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,