<form action="action1" method="post" name=form1>
内容。。。
<input type="submit" value="提交" >
内容。。。
<input type="button" value="确定" onclick="chage()">
</form>
<script language="javascript">
function chage(){
this.document.form1.action = "action2";//需要执行的具体action
document.form1.submit();
return true;
}
</script>
一个jsp页面多次提交form
最新推荐文章于 2022-04-18 19:54:29 发布