IHTMLDocument Interface
Used to get information about a document, to examine and modify the HTML elements and text in the document, and to process related events.
IHTMLDocument Members
Script Gets an interface pointer that provides access to the scripting object via a handle to the script engine.
Remarks
Typically, every window object has a corresponding document object that you get by calling the QueryInterface function with the IID_IHTMLDocument or IID_IHTMLDocument2 interface identifiers. A document object represents the HTML document in a given browser window. Windows that contain HTML documents always have valid document objects; windows that contain documents in other formats might not have valid document objects.
In general, before you attempt to get 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.
Interface Information
Stock Implementation mshtml.dll Custom Implementation No Inherits from IDispatch Header and IDL files Mshtml.h, Mshtml.idl Minimum availability Internet Explorer 4.0 Minimum operating systems Windows 95, Windows NT 4.0, Windows CE 2.12