Easy Tutorial
❮ Jsref Trunc Jsref Some ❯

HTML DOM


Body Object

The Body object represents the HTML body element.

The Body object represents the document body (HTML body).

The body element contains all HTML documents, such as text, hyperlinks, images, tables, lists, etc.


Body Object Properties

W3C: W3C Standard.

Property Description W3C
aLink Sets or returns the alink attribute of the body element. Yes
background Sets or returns the background attribute of the body element. Yes
bgColor Sets or returns the bgColor attribute of the body element. Yes
link Sets or returns the link attribute of the body element. Yes
text Sets or returns the text attribute of the body element. Yes
vLink Sets or returns the vLink attribute of the body element. Yes

Body Object Events

Event Description W3C
onload The script is executed immediately after the page is fully loaded. Yes

Standard Properties and Events

The Body object also supports standard properties and events.

❮ Jsref Trunc Jsref Some ❯