Share via


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)

Properties | aLink Property | background Property | bgColor Property | bgProperties Property | bottomMargin Property | leftMargin Property | link Property | noWrap Property | onbeforeunload Property | onload Property | onselect Property | onunload Property | rightMargin Property | scroll Property | text Property | topMargin Property | vLink Property

Methods | createTextRange Method

Parent Objects

Child Objects