<body>


HTML DOM Body object


Body object

The Body object represents the HTML body element.

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

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


Body Object Attributes

W3C: W3C standard.

AttributeDescriptionW3C
aLinkSets or returns the alink property of the body element.Yes
backgroundSets or returns the background property of the body element.Yes
bgColorSets or returns the bgColor property of the body element.Yes
linkSets or returns the link attribute of the body element.Yes
textSets or returns the text attribute of the body element.Yes
vLinkSets or returns the vLink property of the body element.Yes

Body object events

EventDescriptionW3C
onloadThe script is executed as soon as the page is fully loaded.Yes

Standard Properties and Events

The Body object also supports standard properties and events .