HTMLBodyElement : HTMLElement
Return to: HTML DOM Level 2 index

Body of an HTML document.

Platform Support

IE Mozilla Netscape Opera Safari Chrome
3.0+ 1.0+ 2.0+ 7.0+ 1.0+ no

Constructors

Constructor Action IE Mozilla Netscape Opera Safari Chrome
HTMLBodyElement Constructor() : HTMLBodyElement
Body of an HTML document.
Show Details 3.0+ 1.0+ 2.0+ 7.0+ 1.0+ no

HTMLBodyElement() : HTMLBodyElement

Body of an HTML document.

Returns
HTMLBodyElement

Visibility
internal

Properties

Property Action IE Mozilla Netscape Opera Safari Chrome
aLink : String
Color of active links.
Show Details 4.0+ 1.0+ 6.0+ 7.0+ 1.0+ no
Availability

HTML DOM Level 1|HTML DOM Level 2|W3C

background : String
URL of the background image of the document.
Show Details 4.0+ 1.0+ 6.0+ 7.0+ 1.0+ no
Availability

HTML DOM Level 1|HTML DOM Level 2|W3C

bgColor : String
Background color of the document.
Show Details 4.0+ 1.0+ 6.0+ 7.0+ 1.0+ no
Availability

HTML DOM Level 1|HTML DOM Level 2|W3C

bgProperties : String
Background properties of the document.
No Details 4.0+ no no no no no
bottomMargin : String
Bottom margin of the document (in pixels).
No Details 4.0+ no no no no no
leftMargin : String
Left margin of the document (in pixels).
No Details 4.0+ no no no no no
link : String
Color of unvisited links.
Show Details 4.0+ 1.0+ 6.0+ 7.0+ 1.0+ no
Availability

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

noWrap : Boolean
If true, indicates that the content of the document word wraps automatically.
No Details 4.0+ no no no no no
rightMargin : String
Right margin of the document (in pixels).
No Details 4.0+ no no no no no
scroll : String
Whether or not to display scrollbars.
No Details 4.0+ no no no no no
text : String
Color of the text in the document.
Show Details 4.0+ 1.0+ 6.0+ 7.0+ 1.0+ no
Availability

HTML DOM Level 1|HTML DOM Level 2|W3C

timeStartRule : String
HTML + Time property.
No Details 5.0+ no no no no no
topMargin : String
Top margin of the document (in pixels).
No Details 4.0+ no no no no no
vLink : String
Color of visited links.
Show Details 4.0+ 1.0+ 6.0+ 7.0+ 1.0+ no
Availability

HTML DOM Level 1|HTML DOM Level 2|W3C

Functions

Method Action IE Mozilla Netscape Opera Safari Chrome
createControlRange() : controlRange
Creates a new controlRange object.
Show Details 5.0+ no no no no no

Returns
controlRange

createTextRange() : textRange
Creates a new textRange object.
Show Details 5.0+ no no no no no

Returns
textRange

doScroll([String action]) : void
Scrolls the document.
Show Details 5.0+ no no no no no

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

Returns
void

pause() : void
Pauses the document timeline.
Show Details 5.0+ no no no no no

Returns
void

resume() : void
Resumes the document timeline.
Show Details 5.0+ no no no no no

Returns
void

References

Document

Availability

HTML DOM Level 1|HTML DOM Level 2|W3C

text_javascript aptana_docs