appendChild method
[This documentation is preliminary and is subject to change.]
Appends an element as a child to the object.
![]() |
Syntax
IHTMLDOMNode retVal = object.appendChild(newChild);
Standards information
Parameters
newChild [in]
Type: IHTMLDOMNodePointer to an IHTMLDOMNode interface that specifies the element to append.
Remarks
The 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
Conceptual
About the W3C Document Object Model
Build date: 1/26/2012