Search e01
One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.
6 results across 6 corpora for DragEvent.
Developer library 6
DataTransfer
ta items, each of one or more data types. `DataTransfer` was primarily designed for the [HTML Drag and Drop API](/docs/Web/API/HTML_Drag_and_Drop_API), as the DragEvent.dataTransfer property, and is still specified in the HTML drag-and-drop section, but it is now also used by other APIs, such as ClipboardEvent.clipboardData and InputEvent.dataTransfer. However, other APIs only use certain parts of its interface, ign
DataTransfer: getData() method
Listener("drop", drop); function allowDrop(allowDropEvent) { allowDropEvent.target.style.color = "blue"; allowDropEvent.preventDefault(); } function drag(dragEvent) { dragEvent.dataTransfer.setData("text", dragEvent.target.id); dragEvent.target.style.color = "green"; } function drop(dropEvent) { dropEvent.preventDefault(); const data = dropEvent.dataTransfer.getData("text"); dropEvent.target.appendCh
DataTransferItem
HTML Drag and Drop API The **`DataTransferItem`** object represents one drag data item. During a _drag operation_, each DragEvent has a dataTransfer property which contains a list of drag data items. Each item in the list is a `DataTransferItem` object. `DataTransferItem` was primarily designed for the [HTML Drag and Drop API](/docs/Web/API/HTML_Drag_and_Drop_API), and is still specified in the HTML drag-and-drop s
HTML DOM API
(or dragged) items, groups of dragged or draggable items, and to handle the drag and drop process. - DataTransfer - DataTransferItem - DataTransferItemList - DragEvent ### Page history interfaces The History API interfaces let you access information about the browser's history, as well as to shift the browser's current tab forward and backward through that history. - BeforeUnloadEvent - HashChangeEvent - History
DataTransferItemList
rag and Drop API The **`DataTransferItemList`** object is a list of DataTransferItem objects representing items being dragged. During a _drag operation_, each DragEvent has a dataTransfer property and that property is a `DataTransferItemList`. The individual items can be accessed using the [bracket notation](/docs/Web/JavaScript/Reference/Operators/Property_accessors#bracket_notation) `[]`. `DataTransferItemList`
DragEvent
HTML Drag and Drop API The **`DragEvent`** interface is a [DOM event](/docs/Web/API/Event) that represents a drag and drop interaction. The user initiates a drag by placing a pointer device (such as a mouse) on the touch surface and then dragging the pointer to a new location (such as another DOM element). Applications are free to interpret a drag and drop interaction in an application-specific way. This interface