this is the code I am using, I have specified target="_blank" in the form however it doesn't open in a new tab.
<script>
function process()
{
var url="https://website.com/search/" + document.getElementById("url").value;
location.href=url;
return false;
}
</script>
<form action="https://website.com/search/" target="_blank" onSubmit="return process();">
Search: <input type="text" name="url" id="url"> <input type="submit" value="go">
</form>
Aucun commentaire:
Enregistrer un commentaire