Gets or sets the value of the value HTML attribute.
Property of dom/HTMLInputElementdom/HTMLInputElement
Syntaxvar defaultValue = inputElement.defaultValue;
inputElement.defaultValue = value;
Return Value
Returns an object of type StringString
The value of the value HTML attribute.
NotesThe value of the property can be changed programmatically, but doing so has no effect on the appearance of the object or the submitted value - if the value property has been changed by a user or by a script. It does, however, change the initial value of the object when the form is reset.
Related specificationsinput type=button
input type=checkbox
input type=file
input type=hidden
input type=image
input type=password
input type=radio
input type=reset
input type=submit
input type=text
textArea
Microsoft Developer Network: [Windows Internet Explorer API reference Article]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4