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
AnswerD.
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.