Returns the automation object of the active document, if any.
Syntax
object.Document
Parameters
- object
- Required. An object expression that evaluates to an object in the Applies To list.
Remarks
When the active document is an HTML page, the Document property provides access to the contents of the HTML document object model. Specifically, it returns an HTMLDocument object reference. The HTMLDocument object is functionally equivalent to the DHTML document object used in HTML page script. It supports all the properties and methods necessary to access the entire contents of the active HTML document.
VB programs that early bind to the HTMLDocument object can reference it through the IHTMLDocument, IHTMLDocument2, IHTMLDocument3 interfaces.
When other document types are active, such as a Word document, the Document property returns the document automation object of that document. For Word documents, this would be the Document object. For more information on the document object models of Office documents, refer to the Microsoft Office Development Documentation in the MSDN content .
Applies To
InternetExplorer, WebBrowser
See Also
Container