browserAction.getPopup()

Gets the HTML document set as the popup for this browser action.

Syntax

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

Parameters

details
object.
tabIdOptional
integer. The tab whose popup to get. If no tab is specified, the non-tab-specific popup is returned.
callback
function. The function is passed the following arguments:
result
string. URL for the popup's document.

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,