Revision: 2588
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at March 13, 2007 07:30 by 1man
Initial Code
var holder = document.getElementById("whateverDiv");//the holder div while(holder.hasChildNodes()){ holder.removeChild(holder.lastChild); }
Initial URL
Initial Description
This while loop will remove all childNodes from a selected element.
Initial Title
Remove All childNodes
Initial Tags
DOM
Initial Language
JavaScript