Change the text displayed on a Submit button:
The value property sets or returns the value of the value attribute of the submit button.
The value attribute defines the text that is displayed on the submit 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 submit button |
Return Value: | A String, representing the text displayed on the submit button |
---|
Return the text displayed on a Submit button:
The result of x will be: