What does the nodeName of the nodeType Document return?

Đinh Yến

New member
What does the nodeName of the nodeType Document return?
A. doctype name
B. target
C. #comment
D. #document
 
Answer: d
Explanation: The nodeName of the nodeType Document returns #document. If the node is an element node, the nodeName property will return the tag name. If the node is an attribute node, the nodeName property will return the name of the attribute.
 

Tìm kiếm

Back
Top