dataTransfer object (Object/JScript)

An object used during drag and drop operations to provide access to data being dragged.

Availability:

JScript - 5.0
Internet Explorer - 5.0
JavaScript syntax:IEmyDataTransfer = myEvent.dataTransfer
Object properties:dropEffect, effectAllowed
Object methods:clearData(), getData(), setData()

This also assists with access to the clipboard while items are being dragged and dropped. You need to access this object via the dataTransfer property of the event object.

Operating this functionality is quite complex and you should check out the various examples covered in the documentation at the Microsoft developer web site.

See also:Event.dataTransfer

PropertyJavaScriptJScriptNIEOperaNESECMADOMCSSHTMLNotes
dropEffect n/a5.0 5.0 n/a5.0 5.0 n/a n/a n/a n/a n/a n/a-
effectAllowed n/a5.0 5.0 n/a5.0 5.0 n/a n/a n/a n/a n/a n/a-

MethodJavaScriptJScriptNIEOperaNESECMADOMCSSHTMLNotes
clearData() n/a5.0 5.0 n/a5.0 5.0 n/a n/a n/a n/a n/a n/a-
getData() n/a5.0 5.0 n/a5.0 5.0 n/a n/a n/a n/a n/a n/a-
setData() n/a5.0 5.0 n/a5.0 5.0 n/a n/a n/a n/a n/a n/a-