Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

removeChild method

Removes a child node from the object.

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


IHTMLDOMNode retVal = object.removeChild(oldChild);


oldChild [in]


Pointer to an IDispatch that specifies the element to be removed from the document.

Standards information


The node to be removed must be an immediate child of the parent object.

This method is accessible at run time. If elements are removed at run time, before the closing tag is parsed, areas of the document might not render.

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.



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

Community Additions

© 2014 Microsoft. All rights reserved.