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
D dataTransfer

Correct Answer: preventDefault

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 Questions

(i) Why do we remember May Day? (ii) What significant changes happened due to that event? (iii) How did the event happen? (iv) What can be done in present day as a result of that event ? (v) Mention the moral of that event.
On a clean glass plate a drop of water spreads to form a thin layer whereas a drop of mercury remains almost spherical because:
The ratio of the useful heat drop to the isentropic heat drop is called
Heat flux increases with temperature drop beyond the Leiden frost point in the plot of heat flux vs. temperature drop for a boiling liquid, because
On a clean glass plate a drop of water spreads to form a thin layer whereas a drop of mercury remains almost spherical because
The ratio of total useful heat drop to the total isentropic heat drop, is called

Next steps