1.

Which of the following property is common in all drag events?(a) drag effects(b) drag data(c) dataTransfer(d) dragenterThe question was posed to me in an interview.My query is from Drag and Drop in section HTML Fonts, Tags and Elements of HTML

Answer»

Correct option is (c) dataTransfer

Explanation: The feedback GIVEN by the user USING drag and DROP operation is done by drag EFFECTS. Drag data includes all the data needed for drag operation. The dataTransfer property of all drag events holds data about the drag and drop operation. When draggable element enters a drop target then dragenter event is occurred.



Discussion

No Comment Found

Related InterviewSolutions