Vidyalelo
JavaScript · Q119

Document Object Model And Event Handling

Programming · JavaScript · question 119

Q119

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

A.
getUserData()
B.
cloneNode()
C.
setUserData(key,data,handler)
Answer
D.
none of the mentioned

Answer: Option C

Solution

Answer: Option C
Solution:
The method setUserData(key,data,handler) is used to associate an object to a key on a node.