browserAction.getTitle()

Gets the browser action's title.

Syntax

browser.browserAction.getTitle(
  details,               // object
  function(result) {...} // function
)

Parameters

details
object.
tabIdOptional
integer. Specify the tab to get the title from. If this is omitted or does not match the ID of an open tab, the non-tab-specific title is returned.
callback
function. The function is passed the following arguments:
result
string. The title.

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,