adplus-dvertising
frame-decoration

Question

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

a.

compareDocumentPosition()

b.

cloneNode()

c.

getUserData()

d.

getFeature()

Answer: (a).compareDocumentPosition()

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

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

Similar Questions

Discover Related MCQs

Q. What does a Node object represent?

Q. What does the nodeName of the nodeType Document return?

Q. What is the purpose of the method item()?

Q. How can the nodes in the node list be accessed?

Q. Which of the following is the child(s) of the node type EntityReference?

Q. Which node type represents the root-node of the DOM tree?

Q. What is the purpose of the DocumentFragment node type?

Q. How many nodetype named constants are available?

Q. Which of the following Node types have a node value equal to null?

Q. How many node object properties are there?

Q. Cookies were originally designed for

Q. The Cookie manipulation is done using which property?

Q. Which of the following explains Cookies nature?

Q. Which attribute is used to extend the lifetime of a cookie?

Q. Which of the following defines the Cookie visibility?

Q. Which of the following can be used to configure the scope of the Cookie visibility?

Q. How can you set a Cookie visibility scope to localStorage?

Q. Which of the following is a boolean cookie attribute?

Q. Which of the following function is used as a consequence of not including semicolons, commas or whitespace in the Cookie value?

Q. What is the constraint on the data per cookie?