title: Javascript, Chrome Extension development, close popup
body: <p>In my manifest i have this:</p>
  
  <pre><code>"popup": "1_options.html"
  </code></pre>
  
  <p>and in the above html file I have this code</p>
  
  <pre><code>  var saved_email = localStorage['saved_email'];
    if (saved_email !== undefined ||  saved_email != "a@a.com") 
    {
        chrome.tabs.create({url: '0_register.html'});
    }
  </code></pre>
  
  <p>which is working exactly as I want, it opens a new tab with the register.html BUT it still has the popup open on the top right :( <code>(1_options.html)</code></p>
  
  <p>is there anyway to close the popup automatically as I open this new tab?</p>
  
  <p>Thanks!
  Ryan</p>