a) drop
b) drag
c) preventDefault
d) dataTransfer
Answer: c
Explanation: The drop event is fired on the element where the drop occurred at the end of the drag operation. When element is being dragged, drag event has happened. 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. The dataTransfer property of all drag events holds data about the drag and drop operation.
Related Posts
What is -Xms and -Xmx while starting jvm?
Which of the following is a garbage collection technique?
Where is a new object allocated memory?
Which of the following has the highest memory requirement?
What would be behaviour if the constructor has a return type?
What would be the behaviour if one parameterized constructor is explicitly defined?
What is not the use of “this” keyword in Java?
Join The Discussion