微智科技网
您的当前位置:首页jsp两个按钮跳转传值

jsp两个按钮跳转传值

来源:微智科技网


<html>
<body>
<script language="javascript">
function f1() {
document.frm1.action="1.jsp"
document.frm1.submit()
}
function f2() {
document.frm1.action="2.jsp"
document.frm1.submit()
}
</script>
<form name="frm1" method="post">
<input type="button" onclick="f1()" value="b1">
<input type="button" onclick="f2()" value="b2">
</form>
</body>
</html>
在f1(),f2()中设定提交的页面
显示全文