MSHTML Classes: CBodyElement

An instance of the CBodyElement class is created for each BODY tag.

Identifiers

coclass: HTMLBody {3050F24A-98B5-11CF-BB82-00AA00BDCE0B}
dispinterface: DispHTMLBody {3050F507-98B5-11CF-BB82-00AA00BDCE0B}

Scripting

The table below lists the interface members that the CBodyElement class exposes as properties (methods, collections, etc) through its string table in addition to the very many properties that are common to all elements. Properties that Microsoft does not list in the HTML and DHTML Reference are highlighted.

Property Attribute Interface Member
aLink same IHTMLBodyElement get_aLink
put_aLink
appendChild   IHTMLDOMNode appendChild
attributes   IHTMLDOMNode get_attributes
background same IHTMLBodyElement get_background
put_background
bgColor same IHTMLBodyElement get_bgColor
put_bgColor
bgProperties same IHTMLBodyElement get_bgProperties
put_bgProperties
bottomMargin same IHTMLBodyElement get_bottomMargin
put_bottomMargin
childNodes   IHTMLDOMNode get_childNodes
cloneNode   IHTMLDOMNode cloneNode
createTextRange   IHTMLBodyElement createTextRange
firstChild   IHTMLDOMNode get_firstChild
hasChildNodes   IHTMLDOMNode hasChildNodes
insertBefore   IHTMLDOMNode insertBefore
lastChild   IHTMLDOMNode get_lastChild
leftMargin same IHTMLBodyElement get_leftMargin
put_leftMargin
link same IHTMLBodyElement get_link
put_link
nextSibling   IHTMLDOMNode get_nextSibling
nodeName   IHTMLDOMNode get_nodeName
nodeType   IHTMLDOMNode get_nodeType
nodeValue   IHTMLDOMNode get_nodeValue
put_nodeValue
noWrap same IHTMLBodyElement get_noWrap
put_noWrap
onafterprint same IHTMLBodyElement2 get_onafterprint
put_onafterprint
onbeforeprint same IHTMLBodyElement2 get_onbeforeprint
put_onbeforeprint
onbeforeunload same IHTMLBodyElement get_onbeforeunload
put_onbeforeunload
onload same IHTMLBodyElement get_onload
put_onload
onselect same IHTMLBodyElement get_onselect
put_onselect
onunload same IHTMLBodyElement get_onunload
put_onunload
ownerDocument   IHTMLDOMNode2 get_ownerDocument
parentNode   IHTMLDOMNode get_parentNode
previousSibling   IHTMLDOMNode get_previousSibling
removeChild   IHTMLDOMNode removeChild
removeNode   IHTMLDOMNode removeNode
replaceChild   IHTMLDOMNode replaceChild
replaceNode   IHTMLDOMNode replaceNode
rightMargin same IHTMLBodyElement get_rightMargin
put_rightMargin
scroll same IHTMLBodyElement get_scroll
put_scroll
swapNode   IHTMLDOMNode swapNode
text same IHTMLBodyElement get_text
put_text
topMargin same IHTMLBodyElement get_topMargin
put_topMargin
uniqueID   IHTMLUniqueName get_uniqueID
uniqueNumber   IHTMLUniqueName get_uniqueNumber
vLink same IHTMLBodyElement get_vLink
put_vLink