HTML DOM Input Reset Object | HTML Reset Input | Reset Input

HTML DOM Input Reset Object

HTML DOM Submit objects


Previous: HTML DOM Submit disabled property

Next: HTML DOM Input Text select () method

Submit objects

Submit object represents an HTML form submit button (submit button).

In the HTML form <input type = "submit"> tag appears every time a Submit object is created.

Before submitting the form, trigger onclick event handler, and a handler by returning fasle to cancel the form submission.

You can traverse the form elements [] array to access a submit button, or by using document.getElementById ().