Well, in the docs extensions , manifest says, you'll need to include βtabsβ as your permission. Similarly, they explain the welcome global application:
Manifest file:
{ "name": "My Extension", "version": "1.0", "description": "Opens up a local webpage", "icons": { "128": "icon_128.png" }, "background_page": "bg.html", "browser_action": { "default_title": "", "default_icon": "icon_19.png" }, "permissions": [ "tabs" ], }
In the background page, you listen for a mouse click event in a browser action.
chrome.browserAction.onClicked.addListener(function(tab) { chrome.tabs.create({'url': chrome.extension.getURL('f.html')}, function(tab) {
As you noted above, you will see that I used the question that you saw in another post. Please note that this is not verified, but I believe that it should work.
Mohamed Mansour Jul 06 '10 at 18:58 2010-07-06 18:58
source share