ButtonType
API reference › HTML › Form › Values › ButtonType
Represents values for the HTML type attribute of the <button> element.
See also: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/button#type.
| Case | Value | Description |
|---|---|---|
BUTTON | 'button' | Represents the button token. The button has no default behavior, and does nothing when pressed by default. |
RESET | 'reset' | Represents the reset token. The button resets all the controls to their initial values. |
SUBMIT | 'submit' | Represents the submit token. The button submits the form data to the server. This is the default if the attribute is not specified for buttons associated with a <form>. |