FPHTMLLegendElement Object

Microsoft FrontPage Visual Basic

FPHTMLLegendElement Object

FPHTMLLegendElement Multiple objects

Represents a LEGEND element for a FIELDSET element in an HTML document. See also the IHTMLLegendElement object.

Using the FPHTMLLegendElement Object

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

    Dim objLegend As FPHTMLLegendElement

Set objLegend = ActiveDocument.all.tags("legend").Item(0)