create method
[This documentation is preliminary and is subject to change.]
Initializes a new option element.
Syntax
IHTMLOptionElement retVal = object.create(text, value, defaultselected, selected);
Standards information
There are no standards that apply here.
Parameters
text [in, optional]
Type: VARIANTA VARIANT of type VT_BSTR that specifies the text of the element.
value [in, optional]
Type: VARIANTA VARIANT of type VT_BSTR that specifies the value of the element.
defaultselected [in, optional]
Type: VARIANTA VARIANT of type VT_BOOL that indicates whether this option is selected by default. If VARIANT_TRUE, this option is selected by default; otherwise, it is not.
selected [in, optional]
Type: VARIANTA VARIANT of type VT_BOOL that indicates whether this is the default option in the select block. If VARIANT_TRUE, this option is the default; otherwise, it is not.
Remarks
You can add the element to a select block by using the add method.
See also
Build date: 1/26/2012