dvcolgan dvcolgan - 2 months ago 11
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?

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

Update

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 });
Comments