title: Chrome extension: How to open a link in new tab?
body: <p>In my Stackoverflow folder, I have <code>stackoverflow.ico</code> and 2 bellow files. When importing it to Chrome, it shows the icon in address bar, but when I click on it, Chrome doesn't open any new tab. What am I doing wrong?</p>
  
  <p><strong>manifest.json</strong></p>
  
  <pre><code>{
    "name": "Stackoverflow",
    "version": "1",
    "browser_action":
    {
      "default_icon": "stackoverflow.ico"
    },
    "background":
    {
      "page": "index.html"
    },
    "permissions": ["tabs"],
    "manifest_version": 2
  }
  </code></pre>
  
  <p><strong>index.html</strong></p>
  
  <pre><code>&lt;html&gt;
    &lt;head&gt;
      &lt;script&gt;
        chrome.browserAction.onClicked.addListener(function(activeTab)
        {
          var newURL = "http://stackoverflow.com/";
          chrome.tabs.create({ url: newURL });
        });
      &lt;/script&gt;
    &lt;/head&gt;
  &lt;/html&gt;
  </code></pre>