国产chinesehdxxxx野外,国产av无码专区亚洲av琪琪,播放男人添女人下边视频,成人国产精品一区二区免费看,chinese丰满人妻videos

App下載
首頁javascriptsubmit_buttonJavascript Form - 如何調(diào)用form.reset()和form.submit()重置和提交表單的方法

Javascript Form - 如何調(diào)用form.reset()和form.submit()重置和提交表單的方法

我們想知道如何調(diào)用form.reset()和form.submit()重置和提交表單的方法。


<html> 
<body> 
<form name="entries" method="POST" action=""> 
First name:<input type="text" name="firstName" id="firstName" /> 
<p>Last name:<input type="text" name="lastName" id="lastName" /></p> 
<p>Address:<input type="text" name="address" id="address" /></p> 
<p>City:<input type="text" name="city" id="city" /></p> 
<p><input type="radio" name="gender" id="gender1" checked="checked"/>Male 
<input type="radio" name="gender" id="gender2" />Female</p> 
<p><input type="checkbox" name="retired" id="retired" />I am retired</p> 
</form> 
<p><a href="javascript:document.forms[0].submit()">
  <img alt="image" src="http://eska-fuses.cn/style/download.png" height="25" width="100" border="0" /></a> 
  <a href="javascript:document.forms[0].reset()">
  <img alt="image" src="http://eska-fuses.cn/style/download.png" height="25" width="100" border="0" /></a></p> 

</body> 
</html>