title: Popup window in chrome extension?
body: <p>I am working with chrome extension development.</p>
  
  <p>Here I am call URL by xml http request:</p>
  
  <pre><code>var xhr = new XMLHttpRequest();
  xhr.open("GET", "URL", true);
  xhr.onreadystatechange = function() {
  if (xhr.readyState == 4) {
     var resp = JSON.parse(xhr.responseText);
      alert(resp);
      alert(xhr.responseText);
    // innerText does not let the attacker inject HTML elements.
   //document.getElementById("resp").innerText = xhr.responseText;
  }
  }
  xhr.send();
  </code></pre>
  
  <p>When I posting same script popup window will open when send request But in case of chrome popup window not working.</p>
  
  <p>When I hit same URL in browser then also a popup window open.</p>
  
  <p>Please suggest me why this not working in case of chrome development.</p>