how to remove html inside a div using javascript code example Example: remove div javascript var div = document.getElementById('div-01'); div.remove();