Returns an array listing the formats that were set in the dragstart event. If any files are being dragged, one of the types will be the string "Files".
Property of dom/DataTransferdom/DataTransfer
SyntaxNote: This property is read-only.
var dragTypes = event.dataTransfer.types;
Return Value
Returns an object of type DOM NodeDOM Node
An array of dragged formats.
Examples
function getDragTypes(e) {
var oData = e.dataTransfer;
var dTypes = oData.types;
}
Related specifications
Microsoft Developer Network: [Windows Internet Explorer API reference Article]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4