SyntaxFix
Write A Post
Hire A Developer
Questions
If you want to clear the div and remove all child nodes, you could put:
var mydiv = document.getElementById('FirstDiv'); while(mydiv.firstChild) { mydiv.removeChild(mydiv.firstChild); }