为什么不这样呢?function check(){
...
document.formname.submit();
//window.location.href="URL" //如何使该句能够执行,或者怎样写是正确的?}...
<form name="formname" action="URL" method="post">
...
<input type=button value=submit onclick="check()">
...
</form>
...
...
document.formname.submit();
//window.location.href="URL" //如何使该句能够执行,或者怎样写是正确的?}...
<form name="formname" action="URL" method="post">
...
<input type=button value=submit onclick="check()">
...
</form>
...
...window.open ("1.htm","name1");
document.formname.submit(); }...
<form name="formname" action="fun.js" method="post" target="name1">
...
<input type=button value=submit onclick="check()">
...
</form>
...