共用方式為


IHTMLDocument5 interface

Provides access to additional properties and methods of the document object, which represents the HTML document in a given browser window.

Members

The IHTMLDocument5 interface inherits from the IDispatch interface. IHTMLDocument5 also has these types of members:

  • Methods
  • Properties

Methods

The IHTMLDocument5 interface has these methods.

Method Description
createAttribute

Creates an IHTMLDOMAttribute interface with a specified IHTMLDOMAttribute2::name.

createComment

Creates an IHTMLCommentElement2 interface with the specified IHTMLObjectElement4::data.

 

Properties

The IHTMLDocument5 interface has these properties.

Property Description

compatMode

Gets a value that indicates whether standards-compliant mode is switched on for the object.

doctype

Gets an object that represents the document type declaration that is associated with the current document.

implementation

Gets the implementation object of the current document.

 

Remarks

IHTMLDocument5 was introduced in Microsoft Internet Explorer 6.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

IDispatch

Reference

IHTMLDocument

IHTMLDocument2

IHTMLDocument3

IHTMLDocument4