title: browser is blocking Javascript window.open
body: <p>I want to create a button that opens a new tab with the user's name. But in Chrome it always block the popup window. Is there way to do this without enabling popup windows?</p>
  
  <pre><code>&lt;div class="box"&gt;
      &lt;form action="" method="post"&gt;
          &lt;input type="text" name="meno" class="form-control" placeholder="Nick"&gt;
          &lt;input type="submit" name="submit" class="tlacitko" value="Submit"&gt;
      &lt;/form&gt;
      &lt;?php
          if($_POST){
              $nick = $_POST['meno'];
              $hlasovat = "&lt;script&gt;window.open('https://czech-craft.eu/vote?id=16942&amp;user=$nick') &lt;/script&gt;";
              echo $hlasovat;
              unset($_POST);
          }
      ?&gt;      
  &lt;/div&gt;
  </code></pre>