HTML DOM remove() Method
Example
Remove the selected element from the document:
var myobj = document.getElementById("demo");
myobj.remove();
Try it Yourself »
Definition and Usage
The remove() method removes the specified element from the DOM.
Browser Support
| Method | |||||
|---|---|---|---|---|---|
| remove() | 23 | 12 | 23 | 7 | 15 |
Syntax
node.remove()
Parameter Values
No parameters
Technical Details
| Return Value: | No return value |
|---|---|
| DOM Version | DOM Living Standard |

