Vidyalelo
HTML · Q13

HTML Fonts, Tags And Elements

Programming · HTML · question 13

Q13

Calling the ______________ method during both a dragenter and dragover event will indicate that a drop is allowed at that location.

A.
drop
B.
drag
C.
preventDefault
Answer
D.
dataTransfer

Answer: Option C

Solution

Answer: Option C
Solution:
Calling the preventDefault method during both a dragenter and dragover event will indicate that a drop is allowed at that location. However, you will commonly wish to call the preventDefault method only in certain situations, for example, only if a link is being dragged.