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 the HTML document content, such as text, hyperlinks, images, tables, lists, and so on.
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
| Events | Description | W3C |
|---|---|---|
| onload | The script is executed immediately after the page is fully loaded. | Yes |