title: Why does my Chrome Extension code not open a new tab?
body: <p>I'm trying to make an extension that makes a new tab open to a specific URL upon a new page being loaded. I figured I should start by learning how to create a new tab at all. My code is below.</p>
  
  <p>manifest.json</p>
  
  <pre><code> {
    "manifest_version": 2,
  
    "name": "name",
    "description": "desctiption",
    "version": "1.0",
  
    "permissions": [
      "tabs",
      "&lt;all_urls&gt;"
    ],
    "browser_action": {
      "default_icon": "icon.png"
    },
    "background" : {
      "page" : "background.html",
      "persistent" : false
    }
  }
  
  //something.js
  function createTab() {
      chrome.tabs.create({url: "http://www.stackoverflow.com"});
  }
  
  &lt;!--background.html--&gt;
  &lt;html&gt;
    &lt;head&gt;
      &lt;body&gt;
        &lt;script src="something.js"&gt;&lt;/script&gt;
        &lt;a href="#" onclick="createTab();"&gt;Create a new tab&lt;/a&gt;
      &lt;/body&gt;
    &lt;/head&gt;
  &lt;/html&gt;
  </code></pre>