IHTMLDOMAttribute2 interface

Provides programmatic access to the properties and methods that are common to all element objects; extends the IHTMLDOMAttribute interface.

Members

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

  • Methods
  • Properties

Methods

The IHTMLDOMAttribute2 interface has these methods.

Method Description
appendChild

Appends an element as a child to the object.

cloneNode

Produces an identical copy, or clone, of the node.

hasChildNodes

Returns a value that indicates whether the object has children.

insertBefore

Inserts an element into the document hierarchy as a child node of a parent object.

removeChild

Removes a child node from the object.

replaceChild

Replaces an existing child element with a new child element.

 

Properties

The IHTMLDOMAttribute2 interface has these properties.

Property Description

childNodes

Gets a collection of HTML Elements and TextNode objects that are direct descendants of the specified object.

expando

Sets or retrieves a value indicating whether arbitrary variables can be created within the object.

firstChild

Gets a reference to the first child in the childNodes collection of the object.

lastChild

Gets a reference to the last child in the childNodes collection of an object.

name

Sets or retrieves the name of the object.

nextSibling

Retrieves a reference to the next child of the parent for the object.

nodeType

Retrieves the type of the requested node.

ownerDocument

Retrieves the document object associated with the node.

parentNode

Retrieves the parent object in the document hierarchy.

previousSibling

Gets a reference to the previous child of the parent for the object.

value

Gets or sets the value of 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