So i wanna create a form with a textbox and a button that on click opens the url that i type inside the textbox,any advice on how to use a function to make it work?
function open(url) {
var win = window.location(url, '_blank');
win.focus();
}
<form>
Give Url:<br>
<input type="url" name="url" placeholder="http://www.example.com"><br>
</form>
<button type="button" onclick="open(url)">Open Url</button>