Input.value (Property)

The value associated with the input element.

Availability:

DOM level - 1
JavaScript - 1.5
JScript - 1.0
Internet Explorer - 3.02
Netscape - 6.0
Opera - 3.0
Property/method value type:String primitive
JavaScript syntax:-myInputObject.value
HTML syntax:<INPUT VALUE="...">

When the input element is a button, this will be the legend text displayed in the button.

When it is a hidden field, it is the value carried in the hidden field and back to the server again on submitting the form.

See also:Button.value, BUTTON.value, Checkbox.value, FileUpload.value, Hidden.value, Option.value, Password.value, RadioButton.value, ResetButton.value, Select.value, SubmitButton.value, TEXTAREA.value, TextCell.value