remove parent element from html using javascript code example Example: remove parent element javascript node.parentNode.parentNode.removeChild(node.parentNode)