how to remove element from div in dom code example Example: javascript remove element from the dom node.remove();