Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

HTML DOM Body object


May 06, 2021 JavaScript with HTML DOM Reference book


Table of contents


HTML DOM Body object


Body Object

The Body object represents an 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, pictures, tables, lists, and so on.


Body object properties

W3C: W3C standard.

Attributes describe W3C
aLink Set or return the Alink property of the main body element. Yes
background Set or return the Background property of the body element. Yes
bgColor Set or return the BGColor property of the body element. Yes
link Set or return the link attribute of the main element. Yes
text Set or return the Text property of the main element. Yes
vLink Set or return the VLINK attribute of the main element. Yes

Body object event

event describe W3C
onload The script will be executed immediately after the page is fully loaded. Yes

Standard properties and events

Body objects also support standard properties and events.