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

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.