This page is Not Ready

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

value

Property of dom/HTMLElementdom/HTMLElement

Syntax

var result = element.value;
element.value = value;

Notes

Remarks

Windows Internet Explorer 8 or later. In IE8 Standards mode, the value property is correctly reported as a canonical attribute name. For example, <input type="text" readonly> and <input type="text" readonly="readonly"> would both set the input text field to read-only. In IE8 mode, the value is evaluated as a canonical value, "readonly". In earlier document compatibility modes, it is evaluated as a Boolean value, true. For more information, see Attribute Differences in Internet Explorer 8. value was introduced in Microsoft Internet Explorer 6.

Syntax

Standards information

See also

Related pages

Attributions