Input.defaultValue (Property)

The default value of the Input object when the page was loaded.

Availability:

DOM level - 1
JavaScript - 1.0
JScript - 1.0
Internet Explorer - 3.02
Netscape - 2.0
Property/method value type:String primitive
JavaScript syntax:-myInputObject.defaultValue
HTML syntax:<INPUT VALUE="aValue">
Argument list:aValueA value string for the input element

This is the value of the input element originally furnished by the VALUE="..." HTML tag attribute when the page was first loaded. You cannot change this value and it is provided so that a JavaScript can restore the default value or test that the current value is the same or different to it.

Property attributes:

ReadOnly