Is there a way to open a Google Chrome plugin's options.html page via Javascript in background.html?
There is a new method that is enabled beginning with Chrome 42:
chrome.runtime.openOptionsPage(function callback) Open your Extension's options page, if possible. The precise behavior may depend on your manifest's options_ui or options_page key, or what Chrome happens to support at the time. For example, the page may be opened in a new tab, within chrome://extensions, within an App, or it may just focus an open options page. It will never cause the caller page to reload. If your Extension does not declare an options page, or Chrome failed to create one for some other reason, the callback will set lastError.
chrome.runtime.openOptionsPage(function callback)
Open your Extension's options page, if possible.
The precise behavior may depend on your manifest's options_ui or options_page key, or what Chrome happens to support at the time. For example, the page may be opened in a new tab, within chrome://extensions, within an App, or it may just focus an open options page. It will never cause the caller page to reload.
options_ui
options_page
chrome://extensions
If your Extension does not declare an options page, or Chrome failed to create one for some other reason, the callback will set lastError.
lastError
1.4m articles
1.4m replys
5 comments
57.0k users