共用方式為


IHTMLDocument6 interface

Extends IHTMLDocument5 with support for document compatibility modes and Web Storage events.

Members

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

  • Methods
  • Properties

Methods

The IHTMLDocument6 interface has these methods.

Method Description
getElementById

Returns a reference to the first object with the specified ID value.

updateSettings

Allows updating the print settings for the page.

 

Properties

The IHTMLDocument6 interface has these properties.

Property Description

compatible

Retrieves the collection of user agents and versions declared in the X-UA-Compatible meta tag.

documentMode

Retrieves the document compatibility mode of the document.

onstoragecommit

Sets or retrieves a pointer to the event handler function associated with the Web Storage HTMLDocumentEvents3::onstoragecommit event.

 

Requirements

Minimum supported client

Windows XP with SP2

Minimum supported server

Windows Server 2003

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

IDispatch

Defining Document Compatibility