例子,from表单多个按钮提交使用onclick跳转不同action。
 
复制代码 代码示例:
<form name="form1" method="post" action="ad/BusinessAction!list.action"> 
//下面input框提交的action不同,用onclick跳转,写一个js方法 
<input type="button" class="mulButton" name="Ids" id="allcheck" onclick="manySend('ad/BusinessAction!sendmany.action')" value="批量导入到成功案例"/> 
<script>
//js方法 
function manySend(href){ 
var form = document.form1; 
form.action = href;//传想要跳转的路径 
form.submit(); 
} 
</script>