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
- Runs a script when the Reset button is clicked.
onReset is an event handler that runs a script when the Reset button is clicked. This could be used to display a pop-up confirmation message before the form data is submitted.
Browser Support for onReset