getAsString method

Invokes the given callback function, passing it the DataTransferItem object string as an argument.

HTML5 A vocabulary and associated APIs for HTML and XHTML

 

Syntax

DataTransferItem.getAsString(callbackFn);

Parameters

callbackFn

The operation to perform on the string data

Return value

This method does not return a value.

Standards information

Remarks

This method only succeeds for DataTransferItems in string format.

See also

DataTransferItem

 

 

Show: