FPHTMLFormElement Object

Microsoft FrontPage Visual Basic

FPHTMLFormElement Object

FPHTMLFormElement Multiple objects

Represents a FORM element in an HTML document. See alto the IHTMLFormElement object.

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

Set objForm = ActiveDocument.forms.Item(0)