FPHTMLButtonElement Object

Microsoft FrontPage Visual Basic

FPHTMLButtonElement Object

FPHTMLButtonElement Multiple objects

Represents the BUTTON element in an HTML document. See also the IHTMLButtonElement object.

Using the FPHTMLButtonElement object

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

    Dim objButton As FPHTMLButtonElement

Set objButton = ActiveDocument.all.tags("button").Item(0)