Exclua todas as crianças no nó
while (myNode.firstChild) {
myNode.removeChild(myNode.lastChild);
}
George_agg
while (myNode.firstChild) {
myNode.removeChild(myNode.lastChild);
}
var myDiv = document.getElementById("myDivID");
myDiv.innerHTML = "";//remove all child elements inside of myDiv