Path: blob/main/files/en-us/mozilla/add-ons/webextensions/api/runtime/openoptionspage/index.md
6552 views
------{{AddonSidebar()}}
If your extension has an options page defined, this method opens it.
This is an asynchronous function that returns a Promise.
Syntax
Parameters
None.
Return value
A Promise that will be fulfilled with no arguments when the options page has been created successfully, or rejected with an error message if the operation failed.
Browser compatibility
{{Compat}}
Examples
Open the options page when the user clicks a browser action's icon:
{{WebExtExamples}}
Note: This API is based on Chromium's
chrome.runtimeAPI. This documentation is derived fromruntime.jsonin the Chromium code.