title: window.open doesn't work inside set setTimeout - popup blocked
body: <p>I'm trying to open a new window using window.open but with some delay. When I use setTimeout browsers shows popup blocked?.</p>
  
  <p>DOES NOT WORK:</p>
  
  <pre><code>&lt;a onclick="nextQuestion('https://www.google.com');"&gt;Gift&lt;/a&gt;       
  
  &lt;script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script&gt;
  function nextQuestion(offer){
      setTimeout(function(){
          window.open('http://www.yahoo.com/','_blank'); 
          window.location = offer;
      }, 4000);
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>DOES WORK:</p>
  
  <pre><code>&lt;a onclick="nextQuestion('https://www.google.com');"&gt;Gift&lt;/a&gt;       
  
      &lt;script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"&gt;&lt;/script&gt;
      &lt;script&gt;
      function nextQuestion(offer){
              window.open('http://www.yahoo.com/','_blank'); 
              window.location = offer;
      }
      &lt;/script&gt;
  </code></pre>
  
  <p>I have to open new tab window using window.open but inside setTimeout for some delay. Any alternate and work around would be much appreciated. </p>
  
  <p>The objective is to open two pages, one inside same page and second in new tab but there is delay.</p>