一个form多个sumit按钮

< script  type ="text/javacript" >
function  funButton1(){
document.formName.action
= " 1.htm " ;
formName.submit();
}
function  funButton2(){
document.formName.action
= " 2.htm " ;
formName.submit();
}
</ script >
< html >
 
< body >
   
< form  name ="formName"  action ="#" >
      
< input  name ="button1"  id ="button1"  value ="按钮1"  onclick ="funButton1()" />
< input  name ="button2"  id ="button2"  value ="按钮2"  onclick ="funButton2()" />
    
</ form >
  
</ body >
</ html >

你可能感兴趣的:(html)