ExamVeda
Login
Home
Document Object Model and Event Handling
?

Which method is used to compare the placement of two nodes in the DOM hierarchy (document)?

Answer & Solution
Correct Answer: Option A
The compareDocumentPosition() method is used to compare the placement of two nodes in the DOM hierarchy (document).
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.