当前位置: 代码迷 >> Web前端 >> 初学着旋钮提交方式
  详细解决方案

初学着旋钮提交方式

热度:106   发布时间:2012-09-20 09:36:50.0
初学着按钮提交方式
1、一个from两个按钮提交
<script>
function save(){
document.form1.action="right.asp";
document.form1.submit();
}
function send(){
document.form1.action="sendtaskook.asp";
document.form1.submit();
}
</script>
<form name="form1">
<input type="button" name="btn1" value="发送" onclick="send();">
<input type="button" name="btn2" value="保存" onclick="save();">
</form>
2、一个按钮提交俩from
function save{
document.retireeForm.action='submitRetireeAdd.action';
document.retireeForm.submit();
document.resumeForm.action='submitResumeAdd.action';
document.resumeForm.submit();
}
<form name="retireeForm"></from>
<from name="form1"></from>
<input type="resumeForm" name="btn1" value="发送" onclick="save();">
  相关解决方案