javascript parentelement.removechild code example Example: remove parent element javascript node.parentNode.parentNode.removeChild(node.parentNode)