Share via


FPHTMLOptionElement Object

FPHTMLOptionElement
Multiple objects

Represenst an OPTION element in an HTML document. See also IHTMLOptionElement object.

Using the FPHTMLOptionElement Object

Use the options property to return an IHTMLElementCollection collection that represents a collection of all the OPTION elements in a SELECT element. Use the Item method to return an FPHTMLOptionElement object that accesses a specific OPTION element, referenced by ordinal number or by the value of the id attribute. The following example accesses the first OPTION element of the first SELECT element in the active document.

Dim objSelect As FPHTMLSelectElement
Dim objOption As FPHTMLOptionElement

Set objSelect = ActiveDocument.all.tags("select").Item(0)
Set objOption = objSelect.Options(0)

Properties | all Property | children Property | className Property | dataFld Property | dataFormatAs Property | dataSrc Property | defaultSelected Property | Document Property | filters Property | form Property | id Property | index Property | innerHTML Property | innerText Property | isTextEdit Property | lang Property | language Property | offsetHeight Property | offsetLeft Property | offsetParent Property | offsetTop Property | offsetWidth Property | onafterupdate Property | onbeforeupdate Property | onclick Property | ondataavailable Property | ondatasetchanged Property | ondatasetcomplete Property | ondblclick Property | ondragstart Property | onerrorupdate Property | onfilterchange Property | onhelp Property | onkeydown Property | onkeypress Property | onkeyup Property | onmousedown Property | onmousemove Property | onmouseout Property | onmouseover Property | onmouseup Property | onrowenter Property | onrowexit Property | onselectstart Property | outerHTML Property | outerText Property | parentElement Property | parentTextEdit Property | recordNumber Property | selected Property | sourceIndex Property | style Property | tagName Property | text Property | title Property | value Property

Methods | click Method | contains Method | getAttribute Method | insertAdjacentHTML Method | insertAdjacentText Method | removeAttribute Method | scrollIntoView Method | setAttribute Method | toString Method

Events | onafterupdate Event | onbeforeupdate Property | onclick Event | ondataavailable Event | ondatasetchanged Event | ondatasetcomplete Event | ondblclick Event | ondragstart Event | onerrorupdate Event | onfilterchange Event | onhelp Event | onkeydown Property | onkeypress Event | onkeyup Event | onmousedown Event | onmousemove Event | onmouseout Event | onmouseover Event | onmouseup Event | onrowenter Event | onrowexit Event | onselectstart Event

Parent Objects

Child Objects | IHTMLElement Object | IHTMLFiltersCollection Object | IHTMLFormElement Object | IHTMLStyle Object