IHTMLBodyElement Object

Microsoft FrontPage Visual Basic

IHTMLBodyElement Object

IHTMLBodyElement

Represents the BODY element in an HTML document. The IHTMLBodyElement object provides access to a limited number of properties and methods that relate to a BODY element. For access to all properties and methods, use the FPHTMLBody object.

Using the IHTMLBodyElement Object

Use the Body property to return an IHTMLBodyElement object. The following example creates an IHTMLBodyElement object that represents the BODY element in the active document.

    Dim objBody As IHTMLBodyElement

Set objBody = ActiveDocument.all.tags("body").Item(0)