Vidyalelo
JavaScript · Q112

Document Object Model And Event Handling

Programming · JavaScript · question 112

Q112

What is the purpose of the Node object property ownerDocument?

A.
Returns the root element
Answer
B.
Returns the last element
C.
Returns the parent node
D.
Returns the immediate node

Answer: Option A

Solution

Answer: Option A
Solution:
The node object property ownerDocument returns the root element (document object) for a node.