HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
The following code fragment loads "books.xml" into xmlDoc and removes the first child node in the first <book> node
The removeChild() method removes a specified child node from the current node.
The removeChild() method is supported in all major browsers.
nodeObject.removeChild(child)
Parameter | Type | Description |
---|---|---|
child | Node object | Required. The node to remove |
Type | Description |
---|---|
Node object | Returns the removed node as a Node object |
DOM Version | Core Level 1 Node Object. Modified in DOM Level 3 |
---|
❮ Node Object