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