HTMLBodyElement : HTMLElement

Body of an HTML document.

Browser/User Agent Support

IEMozillaNetscapeOperaSafariNetscapte
3.0+1.0+2.0+7.0+1.0+no

Constructors

ConstructorIEMozillaNetscapeOperaSafariNetscapte
Body of an HTML document.
3.0+1.0+2.0+7.0+1.0+no
 

Properties

PropertyIEMozillaNetscapeOperaSafariNetscapte
Color of active links.
4.0+1.0+6.0+7.0+1.0+no
 
URL of the background image of the document.
4.0+1.0+6.0+7.0+1.0+no
 
Background color of the document.
4.0+1.0+6.0+7.0+1.0+no
 
Background properties of the document.
4.0+nonononono
 
Bottom margin of the document (in pixels).
4.0+nonononono
 
Left margin of the document (in pixels).
4.0+nonononono
 
Color of unvisited links.
4.0+1.0+6.0+7.0+1.0+no
 
If true, indicates that the content of the document word wraps automatically.
4.0+nonononono
 
Right margin of the document (in pixels).
4.0+nonononono
 
Whether or not to display scrollbars.
4.0+nonononono
 
Color of the text in the document.
4.0+1.0+6.0+7.0+1.0+no
 
HTML + Time property.
5.0+nonononono
 
Top margin of the document (in pixels).
4.0+nonononono
 
Color of visited links.
4.0+1.0+6.0+7.0+1.0+no
 

Methods

MethodIEMozillaNetscapeOperaSafariNetscapte
Creates a new controlRange object.
5.0+nonononono
 
Creates a new textRange object.
5.0+nonononono
 
Scrolls the document.
5.0+nonononono
 
Pauses the document timeline.
5.0+nonononono
 
Resumes the document timeline.
5.0+nonononono
 

References

Document

Availability

HTML DOM Level 1 | HTML DOM Level 2 | W3C

Constructor Detail

HTMLBodyElement HTMLBodyElement()

Body of an HTML document.

Visibility
internal

Property Detail

String aLink

Color of active links.

Availability

HTML DOM Level 1 | HTML DOM Level 2 | W3C

String background

URL of the background image of the document.

Availability

HTML DOM Level 1 | HTML DOM Level 2 | W3C

String bgColor

Background color of the document.

Availability

HTML DOM Level 1 | HTML DOM Level 2 | W3C

String bgProperties

Background properties of the document.

String bottomMargin

Bottom margin of the document (in pixels).

String leftMargin

Left margin of the document (in pixels).

String link

Color of unvisited links.

Availability

HTML DOM Level 1HTML DOM Level 1 | HTML DOM Level 2 | W3C

Boolean noWrap

If true, indicates that the content of the document word wraps automatically.

String rightMargin

Right margin of the document (in pixels).

String scroll

Whether or not to display scrollbars.

String text

Color of the text in the document.

Availability

HTML DOM Level 1 | HTML DOM Level 2 | W3C

String timeStartRule

HTML + Time property.

String topMargin

Top margin of the document (in pixels).

String vLink

Color of visited links.

Availability

HTML DOM Level 1 | HTML DOM Level 2 | W3C

Method Detail

createControlRange() : controlRange

Creates a new controlRange object.

createTextRange() : textRange

Creates a new textRange object.

doScroll([String action]) : void

Scrolls the document.

StringactionSpecifies how to do the scrolling (e.g. "left" or "right"). Default is to scroll to the top of the document. (optional)

pause() : void

Pauses the document timeline.

resume() : void

Resumes the document timeline.