title: How can I trigger window.open to a specific dynamic URL?
body: <p>I would like to open a new tab with sent condition, my code now:</p>
  
  <pre><code>&lt;span&gt;Type &lt;b&gt;Link&lt;/b&gt;: &lt;input id="myInput" value=""&gt; and click &lt;b&gt;Enter&lt;/b&gt; 
  &lt;button style="display: none;" id="myButton" onclick="myFunction2()"&gt;Go!&lt;/button&gt;
  
  [...]
  
  &lt;script&gt;
  var websitelink = '"https://www.' + myInput + '.com"';
  function myFunction2() {
      window.open(websitelink);
  }
  </code></pre>
  
  <p>but all it does is opening a new blank tab. Any idea?</p>
  
  <p>Thanks.</p>