Form Object
Reset a form:
The reset() method resets the values of all elements in a form (same as clicking the Reset button).
Tip: Use the submit() method to submit the form.
The reset() method is supported in all major browsers.