how to tell if dom element has a specific child code example Example: how to check if a tag has any chidren tag.hasChildNodes()