BodyElement Object Members

SharePoint Designer Developer Reference

Represents the BODY element in an HTML document.

Methods

  Name Description
contains Returns a Boolean that represents whether an element is contained within another element. True indicates that the element specified in the pChild parameter is contained within a BODY element.
createTextRange Returns an TextRange object that represents the text and elements in the body of a document.
getAttribute Returns a Variant that represents the value of the specified attribute.
insertAdjacentHTML Inserts HTML text into a BODY element at the specified location.
insertAdjacentText Inserts text into a BODY element at the specified location.
removeAttribute Returns a Boolean that represents whether the attribute was successfully removed. True indicates that the attribute was removed. False indicates that the attribute was not removed.
scrollIntoView Scrolls the page so that a BODY element is positioned at the top of the page window.
setAttribute Sets the attribute for a BODY element.

Properties

  Name Description
accessKey Sets or returns a String that represents the shortcut key, also known as the accelerator key, for a specified object.
aLink Sets or returns a String that represents the color of all active links in the element.
all Returns an ElementCollection object that represents a reference to the collection of all elements contained within a specified object.
background Sets or returns a String that represents the URL of the background image to display on the page. Corresponds to the background attribute for the BODY element.
bgColor Returns or sets a String, specifying a color name or red-green-blue (RGB) value, that represents the color behind the content contained within the BODY element. Corresponds to the bgcolor attribute.
bgProperties Returns or sets a String that represents the properties of the background image. Corresponds to the bgproperties attribute.
bottomMargin Returns or sets a String that represents the number of pixels for the bottom margin of the page.
children Returns an ElementCollection collection that represents a collection of elements that are direct descendants of a BODY element.
className Returns or sets a String that indicates the CSS style rule for a BODY element. Corresponds to the class attribute.
clientHeight Returns a Long that represents the height in pixels of a BODY element without any margin, border, scroll bar, or padding settings that may have been applied.
clientLeft Returns a Long that represents the position in pixels of the left edge of a BODY element without any margin, border, scroll bar, or padding settings that may have been applied.
clientTop Returns a Long that represents the distance in pixels between the offsetTop property and the true top of the client area of a BODY element.
clientWidth Returns a Long that represents the width in pixels of a BODY element without any margin, border, scroll bar, or padding settings that may have been applied.
document Returns an Object that represents the parent document for a BODY element.
id Returns or sets a String that represents the value of the id attribute for a BODY element.
innerHTML Sets or returns a String that represents the text and HTML elements between the start and end tags of a BODY element.
innerText Sets or returns a String that represents the text between the start and end tags of a BODY element without any associated HTML.
isTextEdit Returns a Boolean that represents whether you can create a TextRange object with a BodyElement object. True indicates that you can create a TextRange object.
lang Returns or sets a String that represents the language to use for the specified object. Corresponds to the lang attribute of the associated HTML element.
language Returns or sets a String that represents the language in which the script for a BODY element is written.
leftMargin Sets or returns a String that represents the number of pixels for the left margin of the page.
link Returns or sets a Variant that represents the color of hyperlinks contained in a document. Corresponds to the link attribute for the BODY element.
noWrap Returns or sets a Boolean that represents whether text in an element wraps onto subsequent lines. True disables word wrapping so that text does not wrap onto following lines. False enables word wrapping so that text wraps onto following lines.
offsetHeight Retrieves the height of the specified object relative to the layout or coordinate parent, as indicated in the offsetParent property.
offsetLeft Retrieves the left edge of the specified object relative to the layout or coordinate parent, as indicated in the offsetParent property.
offsetParent Retrurns an IHTMLElement object that represents the parent element that defines the offsetTop and offsetLeft properties.
offsetTop Retrieves the top edge of the specified object relative to the layout or coordinate parent, as indicated in the offsetParent property.
offsetWidth Retrieves the width of the specified object relative to the layout or coordinate parent, as indicated in the offsetParent property.
onbeforeunload Returns or sets a Variant that represents the value of the onbeforeunload attribute, which is the script that runs when the onbeforeunload event fires.
onclick Sets or returns a Variant that represents the value of the onclick attribute, which is the script that runs when the onclick event fires.
ondblclick Returns or sets a Variant that represents the value of the ondblclick attribute, which is the script that runs when the ondblclick event fires.
ondragstart Returns or sets a Variant that represents the value of the ondragstart attribute, which is the script that runs when the ondragstart event fires.
onkeydown Returns or sets a Variant that represents the value of the onkeydown attribute, which is the script that runs when the onkeydown event fires.
onkeyup Returns or sets a Variant that represents the value of the onkeyup attribute, which is the script that runs when the onkeyup event fires.
onload Returns or sets a Variant that represents the value of the onload attribute, which is the script that runs when the onload event fires.
onmousedown Returns or sets a Variant that represents the value of the onmousedown attribute, which is the script that runs when the onmousedown event fires.
onmousemove Returns or sets a Variant that represents the value of the onmousemove attribute, which is the script that runs when the onmousemove event fires.
onmouseout Returns or sets a Variant that represents the value of the onmouseout attribute, which is the script that runs when the onmouseout event fires.
onmouseover Returns or sets a Variant that represents the value of the onmouseover attribute, which is the script that runs when the onmouseover event fires.
onmouseup Returns or sets a Variant that represents the value of the onmouseup attribute, which is the script that runs when the onmouseup event fires.
onresize Returns or sets a Variant that represents the value of the onresize attribute, which is the script that runs when the onresize event fires.
onscroll Returns or sets a Variant that represents the value of the onscroll attribute, which is the script that runs when the onscroll event fires.
onselectstart Returns or sets a Variant that represents the value of the onselectstart attribute, which is the script that runs when the onselectstart event fires.
onunload Returns or sets a Variant that represents the value of the onunload attribute, which is the script that runs when the onunload event fires.
outerHTML Returns or sets a String that represents the HTML for a BODY element and all text and HTML that it contains, including the surrounding start and end tags.
outerText Returns or sets a String that represents the text, without any HTML, of a BODY element.
parentElement Returns an IHTMLElement that represents the element that is one level up in the HTML element hierarchy.
parentTextEdit Returns an IHTMLElement object that represents the parent element in the document hierarchy that can be used to create a text range containing the original element.
rightMargin Sets or returns a String that represents the number of pixels for the right margin of the page.
scroll Sets or returns a String that represents whether the browser displays scroll bars for the element. Corresponds to the scroll attribute.
scrollHeight Returns a Long that represents the scrolling height of an element.
scrollLeft Sets or returns a Long that represents the distance between the left edge of the element and the leftmost portion of the content currently visible in the window.
scrollTop Sets or returns a Long that represents the distance between the top edge of the element and the topmost portion of the content currently visible in the window.
scrollWidth Returns a Long that represents the scrolling width of an element.
sourceIndex Returns a Long that represents the ordinal position of the element, in source order, as the element appears in the ElementCollection collection accessed by using the all property.
Style Returns an Style object that represents the inline style properties for a BODY element. Corresponds to the style attribute.
tabIndex Sets or returns an Integer that represents the position of an element within the tab selection order.
tagName Returns a String that represents the name of a BODY element.
text Returns or sets a Variant that represents the color of text in the body of a Web page. Corresponds to the text attribute.
title Sets or returns a String that represents the value of a ScreenTip for a BODY element.
topMargin Sets or returns a String that represents the number of pixels for the top margin of the page.
vLink Returns or sets a Variant that specifies the color of all visited links in the current document. Corresponds to the vlink attribute of the BODY element.

Events

  Name Description
onafterupdate The onafterupdate event is not supported in 1st_SPDesignerGeneric VBA and is therefore unavailable for programmatic access. For more information, see Why Are Some Object Model Members Not Supported?
onbeforeupdate The onbeforeupdate event is not supported in 1st_SPDesignerGeneric VBA and is therefore unavailable for programmatic access. For more information, see Why Are Some Object Model Members Not Supported?
onblur The onblur event is not supported in 1st_SPDesignerGeneric VBA and is therefore unavailable for programmatic access. For more information, see Why Are Some Object Model Members Not Supported?
onchange The onchange event is not supported in 1st_SPDesignerGeneric VBA and is therefore unavailable for programmatic access. For more information, see Why Are Some Object Model Members Not Supported?
onclick Occurs when a user clicks on a BODY element.
ondataavailable The ondataavailable event is not supported in 1st_SPDesignerGeneric VBA and is therefore unavailable for programmatic access. For more information, see Why Are Some Object Model Members Not Supported?
ondatasetchanged The ondatasetchanged event is not supported in 1st_SPDesignerGeneric VBA and is therefore unavailable for programmatic access. For more information, see Why Are Some Object Model Members Not Supported?
ondatasetcomplete The ondatasetcomplete event is not supported in 1st_SPDesignerGeneric VBA and is therefore unavailable for programmatic access. For more information, see Why Are Some Object Model Members Not Supported?
ondblclick Occurs when a user double-clicks on a BODY element.
ondragstart Occurs when the user starts to drag a BODY element.
onerrorupdate The onerrorupdate event is not supported in 1st_SPDesignerGeneric VBA and is therefore unavailable for programmatic access. For more information, see Why Are Some Object Model Members Not Supported?
onfilterchange The onfilterchange event is not supported in 1st_SPDesignerGeneric VBA and is therefore unavailable for programmatic access. For more information, see Why Are Some Object Model Members Not Supported?
onfocus The onfocus event is not supported in 1st_SPDesignerGeneric VBA and is therefore unavailable for programmatic access. For more information, see Why Are Some Object Model Members Not Supported?
onhelp The onhelp event is not supported in 1st_SPDesignerGeneric VBA and is therefore unavailable for programmatic access. For more information, see Why Are Some Object Model Members Not Supported?
onkeydown Occurs when a users presses a key on the keyboard.
onkeypress The onkeypress event is not supported in 1st_SPDesignerGeneric VBA and is therefore unavailable for programmatic access. For more information, see Why Are Some Object Model Members Not Supported?
onkeyup Occurs when a user releases a key.
onmousedown Occurs when a user clicks a BODY element with either mouse button.
onmousemove Occurs when the user moves the mouse pointer over a BODY element.
onmouseout Occurs when a user moves the mouse pointer outside the boundaries of a BODY element.
onmouseover Occurs when a user moves the mouse pointer over a BODY element.
onmouseup Occurs when a user releases the mouse button from a click on the body of a page.
onresize Occurs before a BODY element is resized.
onrowenter The onrowenter event is not supported in 1st_SPDesignerGeneric VBA and is therefore unavailable for programmatic access. For more information, see Why Are Some Object Model Members Not Supported?
onrowexit The onrowexit event is not supported in 1st_SPDesignerGeneric VBA and is therefore unavailable for programmatic access. For more information, see Why Are Some Object Model Members Not Supported?
onscroll Occurs when a user repositions the scroll box in either the horizontal or vertical scroll bar.
onselect The onselect event is not supported in 1st_SPDesignerGeneric VBA and is therefore unavailable for programmatic access. For more information, see Why Are Some Object Model Members Not Supported?
onselectstart Occurs when a user starts selecting a BODY element.