1.html代码
1
2
|
<input type= "submit" name= "Submit1" value= "提交1" onClick= "return nullity1()" >
<input type= "submit" name= "Submit2" value= "提交2" onClick= "return nullity2()" >
|
2.javascript代码
1
2
3
4
5
6
7
8
9
10
11
12
13
|
<script language= "javascript" >
function nullity1() { form1.action= "a.jsp?id=1" ;
} function nullity2() { form1.action= "b.jsp?id=2" ;
} </script> |
本文转自二郎三郎博客园博客,原文链接:http://www.cnblogs.com/haore147/p/3617924.html,如需转载请自行联系原作者