IHTMLDocument3 interface

Provides access to additional properties and methods of the document objects.

Members

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

  • Methods
  • Properties

Methods

The IHTMLDocument3 interface has these methods.

Method Description
attachEvent
Note   IHTMLDocument3::attachEvent is no longer supported. Starting with IE11, use IEventTarget::addEventListener. For info, see Compatibility changes.
 

Binds the specified function to an event, so that the function gets called whenever the event fires on the object.

createDocumentFragment

Creates a new document and returns a pointer to the newly created document.

createTextNode

Creates a text string from the specified value.

detachEvent

Unbinds the specified function from the event, so that the function stops receiving notifications when the event fires.

getElementById

Returns a reference to the first object with the specified value of the IHTMLElement::id or IHTMLDOMAttribute2::name attribute.

getElementsByName

Gets a collection of objects based on the value of the IHTMLDOMAttribute2::name or IHTMLElement::id attribute.

getElementsByTagName

Retrieves a collection of objects based on the specified element name.

recalc

This element is obsolete and should no longer be used. Recalculates all dynamic properties in the current document.

releaseCapture

Removes mouse capture from the object in the current document.

 

Properties

The IHTMLDocument3 interface has these properties.

Property Description

attributes

Retrieves a collection of attributes of the object.

baseUrl

childnodes

Gets the child nodes of the document object.

dir

Sets or retrieves a value that indicates the reading order of the object.

documentElement

Gets a reference to the root node of the document.

enableDownload

inheritStyleSheets

onbeforeeditfocus

Sets or retrieves a pointer to the event handler function associated with the HTMLFrameSiteEvents::onbeforeeditfocus event.

oncellchange

Sets or retrieves a pointer to the event handler function associated with the HTMLFrameSiteEvents::oncellchange event.

oncontextmenu

Sets or retrieves a pointer to the event handler function associated with the HTMLFrameSiteEvents::oncontextmenu event.

onpropertychange

Sets or retrieves a pointer to the event handler function associated with the HTMLFrameSiteEvents::onpropertychange event.

onrowsdelete

Sets or retrieves a pointer to the event handler function associated with the HTMLFrameSiteEvents::onrowsdelete event.

onrowsinserted

Sets or retrieves a pointer to the event handler function associated with the HTMLFrameSiteEvents::onrowsinserted event.

uniqueID

Retrieves an autogenerated, unique identifier for the object.

 

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

IDispatch