Input Button value attribute
Button Object
Definition and Usage
The value attribute sets or returns the value of the value attribute of the button element.
The value attribute specifies the text displayed on the button.
Syntax
Set the value attribute:
buttonObject.value="
value
"
Return the value attribute:
buttonObject.value
Browser support





All major browsers support the value property.
Example
Example
Display the text of the button:
Try it »
Button Object