asp.net.ph

Skip Navigation Links

dataTransfer Object

Language References


Provides access to predefined clipboard formats for use in data transfer operations.

Remarks

The dataTransfer object makes custom handling of editing and drag-and-drop operations possible. It is available through the window object.

The dataTransfer object is used in both source and target events. Typically, the setData method is used in conjunction with source events to provide information about the data being transferred. By contrast, the getData method is used with target events to stipulate what data and data formats to retrieve.

Members

dataTransfer Members

Example

The example shows how to use the setData and getData methods of the dataTransfer object.

Sample Code


Applies To

window



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note