HBCMS更多的中文手册参考:

documentElement参数属性

DHTML文档教程

Retrieves a reference to the root node of the document.

dhtml语法

[ oElement = ] document.documentElement

DHTML可能的值

oElement Object that receives the reference to the document element.

The property is read-only. The property has no default value.

Remarks

The root node of a typical HTML document is the html object.

DHTML代码范例

This example uses the documentElement property to retrieve the innerhtml property of the entire document.

<SCRIPT>
function fnGetHTML(){
var sData = document.documentElement.innerHTML;
oResults.value=sData;
}
</SCRIPT>
<TEXTAREA ID = oResults COLS = 50 ROWS = 10>
</TEXTAREA>

是否符合公共标准

This property is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 Non-Microsoft link.

Applies To

document