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