property:nodeType;
return type:number
content:ถ้าเป็น element node จะคืนค่า 1 ( Element_Node )
ถ้าเป็น attribute node จะคืนค่า 2 ( Attribute_Node )
ถ้าเป็น text node จะคืนค่า 3 ( Text_Node )
example:var tagDiv = document.getElementById ( "bamboo" );
alert ( tagDiv.nodeType );
comment:และค่าอื่นๆที่เป็นไปได้
4 คือ Cdate_Section_Node
5 คือ Entity_Reference_Node
6 คือ Entity_Node
7 คือ Processing_Instruction_Node
8 คือ Comment_Node
9 คือ Document_Node
10 คือ Document_Type_Node
11 คือ Doucment_Fragment_Node
12 คือ Notation_Node