Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Selected Reading
What are the DataTransfer object attributes?
The DataTransfer object holds data about the drag and drop operation. This data can be retrieved and set in terms of various attributes associated with the DataTransfer object.
The following are the attributes:
| Sr.No. |
DataTransfer attributes and their description |
|---|---|
| 1 |
dataTransfer.dropEffect [ = value ]
|
| 2 |
dataTransfer.effectAllowed [ = value ]
|
| 3 |
dataTransfer.types |
| 4 |
dataTransfer.clearData( [ format ] ) Removes the data of the specified formats. Removes all data if the argument is omitted. |
| 5 |
dataTransfer.setData(format, data) |
| 6 |
data = dataTransfer.getData(format) |
| 7 |
dataTransfer.files |
| 8 |
dataTransfer.setDragImage(element, x, y) |
| 9 |
dataTransfer.addElement(element) |
Advertisements
