DOM child nodes – Javascript

Child notes provide different types of information about node type. We can easily check that by typing on note child.

Here is the information about node child number means.

  • 1 – its mean nodeType is an HTML element.
  • 2 – Its mean nodeType is an attribute.
  • 3 – Its mean nodeType is a Text node
  • 8 – Its mean nodeType is a comment node
  • 9 – Document type itself
  • 10 – Doctype

Children nodes provide only HTML elements.

2 Comments

  1. First time visiting your website, I enjoy your site!

  2. First time visiting your website, I love your web site!

Leave a Reply

Your email address will not be published. Required fields are marked *