IHTMLTextAreaElement Object

Microsoft FrontPage Visual Basic

IHTMLTextAreaElement Object

IHTMLTextAreaElement IHTMLFormElement

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

Using the IHTMLTextAreaElement object

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

    Dim objTextArea As IHTMLTextAreaElement

Set objTextArea = ActiveDocument.all.tags("textarea").Item(0)