A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/dom/DataTransfer/types below:

types ยท WebPlatform Docs

types Summary

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

Syntax

Note: 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
HTML
Candidate Recommendation
Attributions

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