title: window.open opened a popup instead of a new window
body: <p>I know this is a newbie question but I really need help. I created a landing page required visitor to input the password to access the target page. The below code works fine but it opened a window as a popup so Chrome blocks it. How should I edit the code below to prevent that happen? Thank you so much!</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>&lt;SCRIPT&gt;
  function passWord() {
  var testV = 1;
  var pass1 = prompt('Please Enter the Password','');
  while (testV &lt; 3) {
  if (!pass1)
  history.go(-1);
  if (pass1.toLowerCase() == "letmein") {
  alert('Access approved! Catalogue is now open.');
  window.open('sandoz-ecatalog.html','_blank');
  break;
  }
  testV+=1;
  var pass1 =
  prompt('Access Denied - Password Incorrect, Please Try Again.','Password');
  }
  if (pass1.toLowerCase()!="password" &amp; testV ==3)
  history.go(-1);
  return "";
  }
  &lt;/SCRIPT&gt;</code></pre>
  </div>
  </div>
  </p>