1.

Which event is fired as the mouse is moving over an element when a drag is occurring?(a) dragover(b) dragenter(c) dragstart(d) dragleaveI had been asked this question in homework.My enquiry is from Drag and Drop topic in section HTML Fonts, Tags and Elements of HTML

Answer»

The correct answer is (a) dragover

For explanation: The dragover EVENT is fired as the mouse is moving over an element when a drag is occurring. Much of the time, the operation that occurs during a listener will be the same as the dragenter event. When draggable element enters a drop target then dragenter event has OCCURRED. A dragleave event occurs when it leaves the valid drop target. WHENEVER a USER starts to drag an element, dragstart is fired.



Discussion

No Comment Found

Related InterviewSolutions