I found this solution here Form value creates a url to make text input form a URL on submit.
Is it possible to add rel="nofollow noopener noreferrer" and target="_blank" to the the URL?
thanks
<script>
function process()
{
var url="http://name.com/" + document.getElementById("url").value;
location.href=url;
return false;
}
</script>
<form onSubmit="return process();">
URL: <input type="text" name="url" id="url"> <input type="submit" value="go">
</form>