<form onReset=””>

Sharing is caring!

Attribute of
HTML Form Code For Beginners (And When To Use It)
What does <form onReset=""> do?
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.

Claire is seasoned technical writer, editor, and HTML enthusiast. She writes for HTML.com and runs a content agency, Red Robot Media.

Browser Support for onReset

AllAllAllAllAllAll