<form onSubmit="">
Disclosure: Your support helps keep the site running! We earn a referral fee for some of the services we recommend on this page. Learn more
- Attribute of
- HTML Form Code For Beginners (And When To Use It)
- What does
<form onSubmit="">
do? - 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
All | All | All | All | All | All |