'nodeType' Syntax and Note : nodeType « Javascript Properties « JavaScript Reference

'nodeType' Syntax and Note

Note:

Read-only property. 
Returns the node type. 
    
Syntax:
    
document.getElementById("elementID").nodeType
document.all.elementID.nodeType // IE only

    

      
      








Related examples in the same category

1.'nodeType' Example
2.'nodeType' Possible Values
3.'nodeType' is applied to