IHTMLDocument4 interface

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

Members

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

  • Methods
  • Properties

Methods

The IHTMLDocument4 interface has these methods.

Method Description
createDocumentFromUrl

Creates a new document object from an existing URL.

createEventObject

Generates an event object to pass event context information when you use the IHTMLDocument4::fireEvent method.

createRenderStyle

Creates an IHTMLRenderStyle interface.

fireEvent

Fires a specified event on the object.

focus

Causes the document to receive the focus.

hasFocus

Gets a value indicating whether the object currently has focus.

 

Properties

The IHTMLDocument4 interface has these properties.

Property Description

media

namespaces

Gets the collection of all namespace objects associated with the document.

oncontrolselect

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

onselectionchange

Sets or gets a pointer to the event handler function associated with the HTMLDocumentEvents2::onselectionchange event.

URLUnencoded

Gets the URL for the document, stripped of any character encoding.

 

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