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