[DOM children] find out how many children an element has #js
document.getElementById("myDIV").children.length; function children() { var c = document.getElementById("myDIV").children.length; return c; }