Which method is not used for traversing DOM tree?

Phương Linh

New member
Which method is not used for traversing DOM tree?
A. parent()
B. parentsUntil()
C. parents()
D. after()
 
Answer: d
Explanation: There are three methods for the traversal of DOM tree. Parent(), parentsUntil(), parents(). Direct parent element is returned by parent() method. All the ancestor elements are returned by parents() method. All the ancestor elements that are between given two arguments are returned by parentsUntil() method.
 

Tìm kiếm

Back
Top