Share via


FPHTMLInputImage Object

FPHTMLInputImage
Multiple objects

Represents an INPUT element of type "image" in a HTML document. See also the IHTMLInputImage object.

Using the FPHTMLInputImage Object

Use the tags method to return an IHTMLElementCollection collection that represents a collection of all the INPUT elements in a document. Use the Item method to return an FPHTMLInputImage object that accesses a specific INPUT element, referenced by ordinal number or by the value of the id attribute. Use the type property to determine the type of INPUT element.

Note  The type property is not a member of the IHTMLElement object; however, it will return valid results for the value of the type attribute for an element, which in this case is "image".

The following example places the first INPUT element in the active document into an IHTMLElement object variable, then uses the type property to determine the type of INPUT element, and places the variable into an appropriate object variable, providing access to the properties and methods that relate to INPUT elements of the specified type.

Dim objInput As IHTMLElement
Dim objButton As FPHTMLInputButtonElement
Dim objFile As FPHTMLInputFileElement
Dim objHidden As FPHTMLInputHiddenElement
Dim objImage As FPHTMLInputImage
Dim objText As FPHTMLInputTextElement

Set objInput = ActiveDocument.all.tags("input").Item(0)

Select Case objInput.Type
    Case "button"
        Set objButton = objInput
    Case "file"
        Set objFile = objInput
    Case "hidden"
        Set objHidden = objInput
    Case "image"
        Set objImage = objInput
    Case "text"
        Set objText = objInput
End Select

Properties | accessKey Property | Align Property | all Property | alt Property | border Property | children Property | className Property | clientHeight Property | clientLeft Property | clientTop Property | clientWidth Property | complete Property | disabled Property | Document Property | dynsrc Property | filters Property | height Property | hspace Property | id Property | innerHTML Property | innerText Property | isTextEdit Property | lang Property | language Property | loop Property | lowsrc Property | name Property | offsetHeight Property | offsetLeft Property | offsetParent Property | offsetTop Property | offsetWidth Property | onabort Property | onafterupdate Property | onbeforeupdate Property | onblur Property | onclick Property | ondataavailable Property | ondatasetchanged Property | ondatasetcomplete Property | ondblclick Property | ondragstart Property | onerror Property | onerrorupdate Property | onfilterchange Property | onfocus Property | onhelp Property | onkeydown Property | onkeypress Property | onkeyup Property | onload Property | onmousedown Property | onmousemove Property | onmouseout Property | onmouseover Property | onmouseup Property | onresize Property | onrowenter Property | onrowexit Property | onselectstart Property | outerHTML Property | outerText Property | parentElement Property | parentTextEdit Property | ReadyState Property | recordNumber Property | sourceIndex Property | src Property | start Property | style Property | tabIndex Property | tagName Property | title Property | Type Property | vrml Property | vspace Property | width Property

Methods | addFilter Method | blur Method | click Method | contains Method | focus Method | getAttribute Method | getBotAttribute Method | insertAdjacentHTML Method | insertAdjacentText Method | removeAttribute Method | removeBotAttribute Method | removeFilter Method | scrollIntoView Method | setAttribute Method | setBotAttribute Method | toString Method

Events | onabort Event | onafterupdate Event | onbeforeupdate Property | onblur Event | onclick Event | ondataavailable Event | ondatasetchanged Event | ondatasetcomplete Event | ondblclick Event | ondragstart Event | onerror Event | onerrorupdate Event | onfilterchange Event | onfocus Event | onhelp Event | onkeydown Property | onkeypress Event | onkeyup Event | onload Event | onmousedown Event | onmousemove Event | onmouseout Event | onmouseover Event | onmouseup Event | onreadystatechange Property | onresize Event | onrowenter Event | onrowexit Event | onselectstart Event

Parent Objects

Child Objects | IHTMLElement Object | IHTMLFiltersCollection Object | IHTMLStyle Object