title: window.location.href with Chrome Extension - New tab
body: <p>I've got an input box, where I can type something into. </p>
  
  <pre><code>&lt;input type="text" id="query"&gt;
  </code></pre>
  
  <p>I then grab that with</p>
  
  <pre><code>query = document.getElementById("query").value;
  </code></pre>
  
  <p>and redirect with</p>
  
  <pre><code>window.location.href = "http://site.com/" + query;
  </code></pre>
  
  <p>It happens when I do my button onclick="func();"</p>
  
  <p>It works when I have a regular .html file, but when I put it into my Chrome Extension, it won't redirect. It's not even doing anything.</p>
  
  <p>I've tried to put</p>
  
  <pre><code>chrome.tabs.create( { url: "http://www.site.com"} );
  </code></pre>
  
  <p>into my function, but it won't load that either.
  My manifest.json has </p>
  
  <pre><code>"permissions": [
      "tabs"
  ]
  </code></pre>
  
  <p>Thank you</p>