Condividi tramite


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. This interface is the base class of IHTMLDocument2 and others.

Members

The IHTMLDocument interface inherits from the IDispatch interface but does not have additional members.

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.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

IDispatch

IHTMLDocument2