A RetroSearch Logo

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

Search Query:

Showing content from http://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/DataTransfer below:

DataTransfer: DataTransfer() constructor - Web APIs

MDN Web Docs
  1. Web
  2. Web APIs
  3. DataTransfer
  4. DataTransfer()

Filter sidebar

In this article
  1. HTML Drag and Drop API
  2. DataTransfer
  3. Constructor
    1. DataTransfer()
  4. Instance properties
    1. dropEffect
    2. effectAllowed
    3. files
    4. items
    5. types
  5. Instance methods
    1. addElement() Experimental Non-standard
    2. clearData()
    3. getData()
    4. setData()
    5. setDragImage()
  6. Related pages for HTML Drag and Drop API
    1. DataTransferItem
    2. DataTransferItemList
    3. DragEvent
  7. Guides
    1. File drag and drop
    2. Drag operations
    3. Recommended Drag Types
In this article DataTransfer: DataTransfer() constructor

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since April 2021.

The DataTransfer constructor creates a new DataTransfer object instance.

Syntax

js

new DataTransfer()
Parameters

None.

Specifications Specification HTML
# dom-datatransfer-dev
Browser compatibility Help improve MDN Was this page helpful to you? Learn how to contribute

.

This page was last modified on Apr 7, 2023 by MDN contributors.

View this page on GitHub

•

Report a problem with this content

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