更新时间:2023-01-14 12:32:19
使用JavaScript非常简单,这是一个有效的示例:
Pretty simple with JavaScript, here's a working example:
<form onsubmit="location.href='http://www.mysite.com/' + document.getElementById('myInput').value; return false;">
<input type="text" id="myInput" />
<input type="submit" />
</form>