Change the text displayed on a Reset button:
The value property sets or returns the value of the value attribute of the reset button.
The value attribute defines the text that is displayed on the reset button.
The value property is supported in all major browsers.
Return the value property:
Set the value property:
Value | Description |
---|---|
text | The text displayed on the reset button |
Return Value: | A String, representing the text displayed on the reset button |
---|
Get the text displayed on a Reset button:
The result of x will be:
HTML reference: HTML <input> value attribute