dataTransfer.getData() (Method)

Gets the data from the transfer object.


JScript - 5.0
Internet Explorer - 5.0
Property/method value type:String primitive
JavaScript syntax:IEmyDataTRansfer.getData()

This is used to extract the data via the dataTransfer, or clipboardData objects. The value returned will be in the form of a string and will either be the textual content or a URL reference to a non-text item.

This mode of access preserves the various security needs when accessing values from one frame to another.

This method is most useful within the onCopy and onCut event handlers.

See also:clipboardData object, onCopy, onCut