Click to return to the Reusing Browser Technology home page    
IHTMLDListElement::get_co...     IHTMLDocument::get_Script...     Interfaces and Scripting ...    
Web Workshop  |  Reusing Browser Technology

IHTMLDocument Interface


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 related events. A document object represents the HTML document in a given browser window.

IHTMLDocument Methods

get_Script Retrieves an interface pointer that provides access to the scripting object via a handle to the script engine.

Interface Information

Implementation System (Mshtml.dll)
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

For Microsoft® Windows® CE only, programmatic access to documents in windows created with the open method is not supported.

Windows CE Use version 2.12 and later
Minimum availability Internet Explorer 4.0

Remarks

Typically, every window object has a corresponding document object that you can retrieve by calling the IUnknown::QueryInterface function with the IID_IHTMLDocument or IID_IHTMLDocument2 interface identifiers. 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).



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.