Partager via


IHTMLOptionElement interface

This interface denotes one choice in a select block.

Members

The IHTMLOptionElement interface inherits from the IDispatch interface. IHTMLOptionElement also has these types of members:

  • Properties

Properties

The IHTMLOptionElement interface has these properties.

Property Description

defaultSelected

Sets or retrieves the status of an option.

form

Retrieves a reference to the form that the object is embedded in.

index

Sets or retrieves the ordinal position of an option in a list box.

selected

Sets or retrieves whether the option in the list box is the default item.

text

Sets or retrieves the text string specified by the option tag.

value

Sets or retrieves the value which is returned to the server when the form control is submitted.

 

Remarks

The option element is a block element.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

IDispatch