Export (0) Print
Expand All

IHTMLDocument7 interface

Provides methods and properties for working with documents. This interface extends the IHTMLDocument6 interface.

Members

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

Methods

The IHTMLDocument7 interface has these methods.

MethodDescription
adoptNode

Tries to move a node from one document to the document that the document object displays.

createAttribute

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

createAttributeNS

Creates a reference to an attribute object that is associated with an XML namespace.

createCDATASection

Creates a CDATA section that contains the specified text.

createElement

Creates an instance of the element for the specified tag.

createElementNS

Creates an element from the specified namespace.

createProcessingInstruction

Creates a processing instruction for an XML parser.

getElementsByClassName

Gets a collection of objects that are based on the value of the class attribute.

getElementsByTagNameNS

Gets a collection of nodes that match an element name from the specified namespace.

getSelection

Returns an object that represents the current selection of the document.

hasAttributes

Determines whether one or more attributes exist for the object.

importNode

Imports a node from another document into the the document that the document object displays.

normalize

Merges adjacent DOM objects to produce a normalized document object model.

 

Properties

The IHTMLDocument7 interface has these properties.

PropertyDescription

body

Gets an interface pointer to the document body object.

characterSet

Gets the name of the character set that is used to encode the document.

cookie

Sets or gets the string value of a cookie.

defaultView

Gets a reference to the window object for the document.

head

Gets the head element of the document.

inputEncoding

Gets the character encoding that is used for the text that is loaded into the document object.

onblur

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

oncanplaythrough

Sets or retrieves a pointer to the event handler function associated with the oncanplaythrough event.

ondrag

Sets or gets a pointer to the event handler function associated with the HTMLFrameSiteEvents::ondrag event.

ondragend

Sets or gets a pointer to the event handler function associated with the HTMLFrameSiteEvents::ondragend event.

ondragenter

Sets or gets a pointer to the event handler function associated with the HTMLFrameSiteEvents::ondragenter event.

ondragleave

Sets or gets a pointer to the event handler function associated with the HTMLFrameSiteEvents::ondragleave event.

ondragover

Sets or gets a pointer to the event handler function associated with the HTMLFrameSiteEvents::ondragover event.

ondrop

Sets or gets a pointer to the event handler function associated with the HTMLFrameSiteEvents::ondrop event.

ondurationchange

Sets or retrieves a pointer to the event handler function associated with the ondurationchange event.

onemptied

Sets or retrieves a pointer to the event handler function associated with the onemptied event.

onended

Sets or retrieves a pointer to the event handler function associated with the onended event.

onfocus

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

oninput

Sets or retrieves a pointer to the event handler function associated with the oninput event.

onload

Sets or retrieves a pointer to the event handler function associated with the HTMLFrameSiteEvents::onload event. The HTMLFrameSiteEvents::onload event occurs immediately after the browser loads the object.

onloadeddata

Sets or retrieves a pointer to the event handler function associated with the onloadeddata event.

onloadedmetadata

Sets or retrieves a pointer to the event handler function associated with the onloadedmetadata event.

onloadstart

Sets or retrieves a pointer to the event handler function associated with the onloadstart event.

onmssitemodejumplistitemremoved

Sets or retrieves a pointer to the event handler function associated with HTMLDocumentEvents4::onmssitemodejumplistitemremoved event.

onmsthumbnailclick

Sets or retrieves a pointer to the event handler function associated with the HTMLDocumentEvents4::onmsthumbnailclick event.

onpause

Sets or retrieves a pointer to the event handler function associated with the onpause event.

onplaying

Sets or retrieves a pointer to the event handler function associated with the onplaying event.

onprogress

Sets or retrieves a pointer to the event handler function associated with the onprogress event.

onratechange

Sets or retrieves a pointer to the event handler function associated with the onratechange event.

onscroll

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

onseeked

Sets or retrieves a pointer to the event handler function associated with the onseeked event.

onseeking

Sets or retrieves a pointer to the event handler function associated with the onseeking event.

onstalled

Sets or retrieves a pointer to the event handler function associated with the onstalled event.

onsuspend

Sets or retrieves a pointer to the event handler function associated with the onsuspend event.

ontimeupdate

Sets or retrieves a pointer to the event handler function associated with the ontimeupdate event.

onvolumechange

Sets or retrieves a pointer to the event handler function associated with the onvolumechange event.

onwaiting

Sets or retrieves a pointer to the event handler function associated with the onwaiting event.

parentWindow

Gets a reference to the container object of the window.

xmlEncoding

Gets a value that represents the character encoding that is specified in the declaration of an XML document.

xmlStandalone

Gets or sets the value of the standalone attribute in the declaration of an XML document.

xmlVersion

Gets or sets the version attribute that is specified in the declaration of an XML document.

 

Requirements

Minimum supported client

Windows Vista with SP1, Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

 

 

Community Additions

ADD
Show:
© 2014 Microsoft