title: extjs 4.0 inconsistent window.open() behavior when called within Ext.Ajax.request()
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/9793774/window-openurl-different-behavior-same-code-different-timing">window.open(url) different behavior - same code, different timing</a>  </p>
  </blockquote>
  
  
  
  <p>I'll let my code snippet explain the issue I'm seeing.</p>
  
  <pre><code>function myFunction() {
      window.open('http://www.yahoo.com');  // --&gt; this opens a new tab on my browser
      Ext.Ajax.request({
          url: 'PHP function call',
          success: function(response) {
              window.open('http://www.yahoo.com');  // --&gt; this opens a new window, not tab
          }
      });
  }
  </code></pre>
  
  <p>This is very strange. From researching this issue, I understand there currently exists no way to force a browser tab to open instead of a browser window. That being said, I'm still wondering if there's any workaround.  The way my app is designed, every time I call window.open() a tab is opened except for this one case and therefore my clients find it very annoying.  Any insight would be greatly appreciated.</p>
  
  <p>In addition to Justin's suggestion below I also tried the following:</p>
  
  <pre><code>function myFunction() {
      var myWin = window;
      myWin.open('http://www.yahoo.com');  // --&gt; this opens a new tab on my browser
      Ext.Ajax.request({
          url: 'PHP function call',
          success: function(response) {
              myWin.open('http://www.yahoo.com');  // --&gt; this opens a new window, not tab
          }
      });
  }
  </code></pre>