pageAction.getPopup()

Gets the URL for the HTML document set as the popup for this page action.

Syntax

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

Parameters

details
object.
tabId
integer. ID of the tab whose popup you want to get.
callback
function. The function is passed the following arguments:
result
string. The popup's URL.

Browser compatibility

EdgeFirefoxChromeOpera
Basic support?45.0Yes33
Firefox
Basic supportNo

Examples

Acknowledgements

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

Document Tags and Contributors

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