首页 > 网站 > WEB开发 > 正文

一个form两个提交按钮,分别提交到两页面

2024-04-27 13:56:18
字体:
来源:转载
供稿:网友
<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>
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表