sharpest

转自:https://www.jb51.net/article/63305.htm

 1 <!DOCTYPE html>
 2 <html>
 3 <head>
 4 <script>
 5 function formReset()
 6 {
 7 document.getElementById("frm1").reset();
 8 }
 9 </script>
10 </head>
11 <body>
12 <p>Enter some text in the fields below, 
13 then press the "Reset form" button to reset the form.</p>
14 <form id="frm1">
15 First name: <input type="text" name="fname"><br>
16 Last name: <input type="text" name="lname"><br><br>
17 <input type="button" onclick="formReset()" value="Reset form">
18 </form>
19 </body>
20 </html>

 

分类:

技术点:

相关文章:

  • 2021-12-06
  • 2021-06-29
  • 2022-12-23
  • 2022-12-23
  • 2021-12-06
猜你喜欢
  • 2021-12-06
  • 2022-01-16
  • 2021-12-04
  • 2021-11-14
  • 2022-01-17
  • 2021-12-06
  • 2022-02-13
相关资源
相似解决方案