0
<script>
function process()
{
var url="http://google.com/?hl=en&q=" + document.getElementById("query").value;
location.href=url;
return false;
}
</script>
<form onSubmit="return process();" target="_blank">
query: <input type="text" name="query" id="query">
<input type="submit" value="go">
</form>
如何在新選項卡上處理此問題?如何打開窗體上的新選項卡onSubmit =「return process();」
可能重複http://stackoverflow.com/questions/4907843/open-a-url-in-a-new-tab-using-javascript ) – Praveen