This page is Ready to Use

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

items

Summary

Returns a DataTransferItemList object containing the drag data.

Property of dom/DataTransferdom/DataTransfer

Syntax

Note: This property is read-only.

var result = element.items;

Return Value

Returns an object of type ObjectObject

A DataTransferItemList object; see the W3C specification for more information.

Examples

//get DataTransfer item list
function getItemList(e) {
  var oData = e.dataTransfer;
  var iList = oData.items;
}

Related specifications

HTML5
Candidate Recommendation