HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
Input Submit Object : 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.
Property | |||||
---|---|---|---|---|---|
value | Yes | Yes | Yes | Yes | Yes |
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:
var x = document.getElementById("mySubmit").value;
❮ Input Submit Object