how's the node type for element is 1? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

how's the node type for element is 1?

explain the question given in tutorial.

5th Aug 2016, 8:23 AM
Omkar Deshpande
Omkar Deshpande - avatar
2 Respuestas
+ 1
the question is in reference to the chart provided in the previous page. a DOM element has its NodeType as constant 1. you can refer to the following link for further explanation. http://www.w3schools.com/jsref/prop_node_nodetype.asp
5th Aug 2016, 12:31 PM
Pi Ka
Pi Ka - avatar
0
check out node.nodetype to see what integer it returns
7th Aug 2016, 10:22 AM
Grandhi Surya Koteswara Rao