Remove an item from a list:
Before removing:
After removing:
The removeChild() method removes a specified child node of the specified element.
Returns the removed node as a Node object, or null if the node does not exist.
![]()
The removeChild() method is supported in all major browsers.
| Parameter | Type | Description |
|---|---|---|
| node | Node object | Required. The node object you want to remove |
| Type | Description |
|---|---|
| Node object | The removed node |
| DOM Version | Core Level 1 |
|---|
Node Object
Your message has been sent to W3Schools.