Examveda
Examveda

How to associate an object to a key on a node?

A. getUserData()

B. cloneNode()

C. setUserData(key,data,handler)

D. none of the mentioned

Answer: Option C

Solution(By Examveda Team)

The method setUserData(key,data,handler) is used to associate an object to a key on a node.

Join The Discussion

Related Questions on Document Object Model and Event Handling