/

HTML / CSS / JavaScript Tutorial

JavaScript DOM HTML method: removeChild()

[this page | pdf | back links]

The removeChild() method (when applied to HTML elements in the JavaScript DOM) removes the specified child node.

 

It has the following syntax with the following parameters. It returns the removed node (or null if the node does not exist).

 

element.removeChild(node)

 

Parameter

Required / Optional

Description

node

Required

Node object to be removed

 


NAVIGATION LINKS
Contents | Prev | Next | JavaScript DOM (and BOM)


Desktop view | Switch to Mobile