- Attribute of
- <form> HTML Tag
- What does
- Runs a script when the Submit button is clicked.
onReset is an event handler that runs a script when the Submit button is clicked. You could use this to confirm that the user really wants the form to be submitted.
Browser Support for onSubmit