1.

The _________ event is fired on the element where the drop occurred at the end of the drag operation.(a) drag(b) drop(c) dragstart(d) dragenterThe question was posed to me in examination.I want to ask this question from Drag and Drop topic in chapter HTML Fonts, Tags and Elements of HTML

Answer»

The correct option is (B) drop

To ELABORATE: The drop event is fired on the element where the drop OCCURRED at the end of the DRAG operation. A listener would be responsible for retrieving the data being DRAGGED and inserting it at the drop location. Whenever user starts to drag an element, dragstart is fired. When draggable element enters a drop target then dragenter event is occurred. When element is being dragged, drag event is happened.



Discussion

No Comment Found

Related InterviewSolutions