Language References
Sets or retrieves the value of a form control or PARAM element.
Inline |
<element VALUE = sValue...> |
Script |
object.value = sValue ] |
sValue |
String specifying the value of the control. |
This property is read/write with a default value that depends on the type of control.
The purpose of the string depends on the type of control.
If the attribute is not specified, it defaults to:
All other objects have no default value.
The value attribute of the PARAM element specifies a value passed to an APPLET, EMBED, or OBJECT object.
The following example sets the value for each option to an integer string ( for example, a part number ).
<select>
<option value="123">Item One
<option value="456">Item Two
<option value="789">Item Three
</select>
BUTTON, INPUT, OPTION, PARAM
Form Submission: Successful Controls