Contents Index Topic Contents | ||
Previous Topic: IHTMLDocument::get_Script Next Topic: IHTMLDocument2::get_all |
IHTMLDocument2
A document object represents the HTML document in a given browser window. You use the document object to retrieve information about the document, to examine and modify the HTML elements and text within the document, and to process events.
Typically, every window object has a corresponding document object that you can retrieve by calling the IUnknown::QueryInterface method with the IID_IHTMLDocument or IID_IHTMLDocument2 interface identifier. Windows that contain HTML documents always have valid document objects, but windows that contain documents in other formats might not. In general, before attempting to retrieve the document object for a window that is not the current window, make sure that the source file associated with that window is an HTML document file or a file that can be represented as an HTML document (for example, a text file).
IHTMLDocument2 Methods
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.