HTML DOM BodyObject
Body Object
The Body object represents the HTML body element.
The Body object represents the main body of the document (HTML body).
The body element contains all the contents of an HTML document, 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 has finished loading. | Yes |
Standard Properties and Events
The Body object also supports the standardpropertiesandevents。
Other Extensions