經安全檢測,此網站為安全網站,請放心前往原始網址!

Using JavaScript to reset or clear a form

Using an HTML ‘Reset’ button is an easy way to reset all form fields to their default values. For instance, the code snippet below shows an field of type “reset”, which on being clicked resets all the form fields:

www.javascript-coder.com

網址安全性掃描由 google 提供