Sets or retrieves the value of the object.
Syntax
HTML <ELEMENT VALUE = sValue ... > Scripting object.value [ = sValue ]
Possible Values
sValue String that specifies the value of an object or a FORM control. The purpose of the string depends on the type of control, as follows:
checkbox The selected value. The control submits this value only if the user has selected the control. Otherwise, the control submits no value. file The value, a file name, typed by the user into the control. Unlike other controls, this value is read-only. hidden The control submits this value when the form is submitted. OPTION The selected value. The containing list box control submits this value only if the user has selected the option. password The default value. The control displays this value when it is first created and when the user clicks the reset button. radio The button label. If not set, the label defaults to "Reset". reset The selected value. The control submits this value only if the user has selected the control. Otherwise, the control submits no value. submit The button label. If not set, the label defaults to "Submit Query." text The default value. The control displays this value when it is first created and when the user clicks the reset button. This property is read/write with a default value of on for the checkbox and radio objects, Submit Query for the submit object, and Reset for the reset object. All other objects have no default value.
Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see Dynamic Properties.
Remarks
The VALUE attribute of the PARAM object specifies a value passed to an APPLET, EMBED, or OBJECT object.
Example
This example sets the value for each option to an integer string (for example, a part number).
Sample Code
<SELECT> <OPTION VALUE="123">Item One <OPTION VALUE="456">Item Two <OPTION VALUE="789">Item Three </SELECT>
Applies To