dvcolgan dvcolgan - 9 months ago 50
Javascript Question

Programmatically open a Chrome plugin's options.html page?

Is there a way to open a Google Chrome plugin's options.html page via Javascript in background.html?

chrome.tabs.create({ url: "options.html" });


Starting with version 40, Chrome now uses a new popup options dialog from the extension management page instead of dedicated options pages (which are being deprecated). You can still achieve the same effect with a modification to the URL.

chrome.tabs.create({ 'url': 'chrome://extensions/?options=' + chrome.runtime.id });