Sets a value of the object.
Syntax
object.setValue(Value, [nIndex])
Parameters
object
A script object.
Value
The value you want to set.
nIndex
Index of an item in the zero-based list. If left null, the index defaults to the currently selected item. For Listbox and OptionGroup objects, the index of the currently selected item is equivalent to the value of the selectedIndex property.
Remarks
For Listbox and OptionGroup objects, the method sets a text string because it corresponds to the HTML attribute VALUE.