IHTMLButtonElement Object

Microsoft FrontPage Visual Basic

IHTMLButtonElement Object

IHTMLButtonElement IHTMLFormElement

Represents the BUTTON element in an HTML document. The IHTMLButtonElement object provides limited access to properties and method related to the BR element. For access to all properties and methods, use the FPHTMLButtonElement object.

Using the IHTMLButtonElement 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 IHTMLButtonElement 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 IHTMLButtonElement

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