Home | Top | Free Ajax Editor | JavaScript Editor | Get Advanced JavaScript and Ajax Editor, Validator and Debugger! 1st JavaScript Editor. |
Removes one or more data formats from the clipboard through dataTransfer or clipboardData object.
Syntax
pret = object .clearData( [ sDataFormat ] )Parameters
sDataFormat | Optional. String that specifies one or more of the following data format values:
|
Return Value
No return value.
Remarks
If no sDataFormat parameter is passed, the data formats are cleared.
For drag-and-drop operations, the clearData method of the dataTransfer object is generally used in source events, such as ondragstart . When overriding the default behavior of the target, use clearData in the ondrop event. It is particularly useful for selectively removing data formats when multiple formats are specified.
Example
This example uses the clearData method to remove the Text data format from the clipboard through the dataTransfer object.
<HEAD>
Standards Information
There is no public standard that applies to this method.
Applies To
|
clipboardData , dataTransfer |
Home | Top | Free Ajax Editor | JavaScript Editor | Get Advanced JavaScript and Ajax Editor, Validator and Debugger! 1st JavaScript Editor. |