javascript how to append child element to first place code example
Example: how to appendChild in the begin of the div javascript
var element = document.getElementById("div1");
element.insertBefore(para, element.firstChild);
var element = document.getElementById("div1");
element.insertBefore(para, element.firstChild);