Is there a function like document.getElementById(\"FirstDiv\").clear()?
document.getElementById(\"FirstDiv\").clear()
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); }