INPUT Reset Description:
The reset INPUT tag sets the form back to its initial state when the form was loaded. In most forms this means that it clears the contents of the form, but if the form started out with pre-loaded contents, that is what will display when the reset button is clicked.
DTD: HTML5: <!doctype html>
HTML4 Strict: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
HTML4 Transitional or Loose: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
INPUT Reset Web Browser Support:
- AvantGo Palm OS
- AvantGo Windows CE
- Chrome 1, 2, 3, 4, 5
- Firefox 1, 2, 3
- Internet Explorer 2, 3, 4, 5, 6, 7, 8
- Netscape 2, 3, 4, 6, 7, 8
- Opera 3, 4, 5, 6, 7, 8, 9, 10
- Safari 1, 2, 3, 4, 5
INPUT Reset Attributes:
INPUT Reset Usage:
Standard reset button
See an example of a standard reset button.
INPUT Reset Special Notes:
Reset buttons do not clear the forms of all contents. Instead, they bring the form back to the initial state. In many forms, this is blank, but if you set default values in your forms, then they will display when the reset button is clicked.
The default wording on the reset button is “Reset”. If you want it to say something else, you need to change that in the value attribute.