IHTMLLabelElement Object

Microsoft FrontPage Visual Basic

IHTMLLabelElement Object

IHTMLLabelElement

Represents a LABEL element in an HTML document. The IHTMLLabelElement provides access to a limited number of properties and methods related to the LABEL element. For access to all properties and methods, use the FPHTMLLabelElement object.

Using the IHTMLLabelElement Object

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

    Dim objLabel As IHTMLLabelElement

Set objLabel = ActiveDocument.all.tags("label").Item(0)