PrepAway - Latest Free Exam Questions & Answers

How should you complete the relevant code?

HOTSPOT
You develop an HTML5 application that allows images to be dragged and dropped within a webpage. The
webpage contains a DIV element and four IMG elements as defined in the code segment below:

You need to enable drag and drop for the application.
How should you complete the relevant code? (To answer, select the appropriate option from each drop-down
list in the answer area.)
Hot Area:

PrepAway - Latest Free Exam Questions & Answers

Answer:

Explanation:
* setData method (dataTransfer)
Specifies the data and its format for the current drag-and-drop operation.
* getData method (dataTransfer)
Retrieves the specified formatted data from the current drag-and-drop operation.


Leave a Reply