IHTMLWindow2::Option Property

Retrieves an interface pointer to a factory object that you can use to create option elements.

Syntax


HRESULT IHTMLWindow2::get_Option(IHTMLOptionElementFactory **p);

Parameters

p
Address of a pointer to a variable of type IHTMLOptionElementFactory interface that receives the factory object.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

You can add the elements to a select block by using the IHTMLSelectElement::add method.

Community Additions

Show: