title: Javascript window.open not working
body: <p>Ok. I'm trying to login to twitter. The window is not opening in this code. The response that gets alerted is not null and is a link to a login screen. Any ideas?</p>
  
  <pre><code>var url = "./twitter_login.php";
  var con = createPHPRequest();
  
  con.open("POST",url,true);
  con.setRequestHeader("Content-type","application/x-www-form-urlencoded");
  con.send("");
  
  var response = "";
  
  con.onreadystatechange = function() {
  
      if(con.readyState==4 &amp;&amp; con.status==200) {
  
          response = con.responseText;    
          alert(response);
          window.open(response,"twitter","menubar=1,resizable=1,width=350,height=500");        
  
      }
  
  }
  </code></pre>