Click to return to the Reusing Browser Technology home page    
IHTMLOptionButtonElement:...     IHTMLOptionElement::get_d...     Interfaces and Scripting ...    
Web Workshop  |  Reusing Browser Technology

IHTMLOptionElement Interface


This interface denotes one choice in a SELECT block.

IHTMLOptionElement Methods

get_defaultSelected Retrieves the value that indicates whether the option is selected by default.
get_form Retrieves a reference to the form the element is embedded on.
get_index Retrieves the ordinal position of the option in the list box.
get_selected Retrieves the value that indicates whether this item is the default.
get_text Retrieves the text string specified by the OPTION tag.
get_value Retrieves the value of the given control. The value is submitted to the server as a name/value pair.
put_defaultSelected Sets the value that indicates whether the option is selected by default.
put_index Sets the ordinal position of the option in the list box.
put_selected Sets the value that indicates whether this item is the default.
put_text Sets the text string specified by the OPTION tag.
put_value Sets the value of the given control. The value is submitted to the server as a name/value pair.

Interface Information

Implementation System (Mshtml.dll)
Inherits from IDispatch
Header and IDL files Mshtml.h, Mshtml.idl
Minimum availability Internet Explorer 4.0
Minimum operating systems Windows 95, Windows NT 4.0

Windows CE

Windows CE Use version 2.12 and later
Minimum availability Internet Explorer 4.0

Remarks

The OPTION element is a block element.



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.