IHTMLFormElement Object

Microsoft FrontPage Visual Basic

IHTMLFormElement Object

Multiple objects IHTMLFormElement

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

Using the IHTMLFormElement Object

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

    Dim objForm As IHTMLFormElement

Set objForm = ActiveDocument.forms.Item(0)