javascript check if has certain child node code example Example: how to check if a tag has any chidren tag.hasChildNodes()