Export (0) Print
Expand All
1 out of 1 rated this helpful - Rate this topic

appendChild method

Appends an element as a child to the object.

Document Object Model (DOM) Level 3 Core Specification, Section 1.4

Syntax


IHTMLDOMNode retVal = object.appendChild(newChild);

Parameters

newChild [in]

Type: IHTMLDOMNode

Pointer to an IHTMLDOMNode interface that specifies the element to append.

Standards information

Remarks

The IHTMLDOMNode::appendChild method appends elements to the end of the childNodes collection.

Windows Internet Explorer 9. Exceptions are only supported when webpages are displayed in IE9 Standards mode.

In Microsoft Internet Explorer 6, This method now applies to the attribute object.

See also

Reference
IHTMLDOMNode::cloneNode
IHTMLDOMNode::insertBefore
Conceptual
About the W3C Document Object Model

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.