Latest web development tutorials

HTML DOM Body Objects

Body Object

Body object represents the HTML body element.

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

body element contains all of the HTML document, such as text, hyperlinks, images, tables, lists, and so on.


Body Object Properties

W3C: W3C standards.

属性 描述 W3C
aLink 设置或者返回主体元素的 alink 属性。 Yes
background 设置或者返回body元素的 background 属性。 Yes
bgColor 设置或者返回body元素的 bgColor 属性。 Yes
link 设置或者返回主体元素的 link 属性。 Yes
text 设置或者返回主体元素的 text 属性。 Yes
vLink 设置或者返回主体元素的 vLink 属性。 Yes

Body object event

事件 描述 W3C
onload 脚本在页面完全载入后会被立即执行。 Yes

Standard properties and events

Body Object also supports the standard attributes and events .