title: Chrome Extension: Open New Popup Window
body: <p>Could someone shed some light on where this code is incorrect please</p>
  
  
  
  <pre class="lang-html prettyprint-override"><code>&lt;script&gt;
      chrome.browserAction.onClicked.addListener(function(window) {
          chrome.windows.onCreated.addListener(function(enumerated string ["popup"]) {
              chrome.windows.create({'url': chrome.extension.getURL('redirect.html')}, function(window) {
              });
          });
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>I'm trying to achieve that when the extension is clicked on a new popup window will load.</p>