How should you complete the relevant code?

Posted by: Pdfprep Category: 70-480 Tags: , ,

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.)

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

Your email address will not be published.