Javascript提交表单

<form action="login.do?act=login" method="post">     
  <input type="submit" name="submit1" value="登陆"> 
</form>  
<form action="login.do?act=login" name="myform" method="post">     
  <input type="button" name="submit1" value="登陆" onclick="javascript:document.myform.submit();" > 
</form> 

 

posted @ 2016-12-30 17:35  EasonJim  阅读(271)  评论(0编辑  收藏  举报