Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

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

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.

Join The Discussion