1.

What is the purpose of the method createDocumentFragment()?(a) Creates a fragment object(b) Creates a document fragment(c) Creates imaginary node object(d) Create a node fragmentI had been asked this question in final exam.Enquiry is from Script Loading topic in division Invocation and Performance Navigation of JavaScript

Answer»

Correct choice is (c) Creates IMAGINARY node object

Explanation: The createDocumentFragment() METHOD creates a imaginary Node object, with all the PROPERTIES and methods of the Node object. DocumentFragments are DOM Nodes. They are NEVER part of the main DOM TREE.



Discussion

No Comment Found

Related InterviewSolutions