User:Prahlad balaji/DivRemoved.js

var parentDiv = document.getElementById("parent"); var removeMe = document.getElementById("remove-me");

parentDiv.removeChild( removeMe ); // Removes the div with the id "remove-me" from the page.