IHTMLControlElement Object

Microsoft FrontPage Visual Basic

IHTMLControlElement Object

IHTMLControlElement

Represents HTML elements that provide user interactivity when they are displayed in a browser. Corresponding objects for these elements have, for example, tabIndex and accessKey properties, indicating that they are keyboard accessible, and onfocus and onblur properties, indicating that they are capable of receiving input focus. Elements that support the IHTMLControlElement object include:

BODYIFRAMESELECT
BUTTONIMAGETABLE
CAPTIONINPUTTD
EMBEDLEGENDTEXTAREA  
FIELDSET  MARQUEE  TH
FRAMEOBJECT

Using the IHTMLControlElement Object

Use the tags method to return an IHTMLElementCollection collection that represents a collection of all of the specified elements in a document. Use the Item method to return an IHTMLControlElement object that accesses a specific element, referenced by ordinal number or by the value of the id attribute. The following example sets the BODY element in the active document to an IHTMLControlElement object.

    Dim objControl As IHTMLControlElement

Set objControl = ActiveDocument.body