documentElement Property

The documentElement property is a reference to the root node of the document. It is read-only, and has no default value. The root node of a typical HTML document is the html object.

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

msgbox Browser("Browser").Page("Page").Object.documentElement.innerHTML