mozGetDataAt method (dataTransfer)
Retrieves the specified formatted data associated to the dragged item at the specified position from the current drag-and-drop operation.
Note: The dataTransfer object and its mozGetDataAt method are supported in Firefox from version 3.5.The mozGetDataAt method is an extension of the getData method for dragging multiple items.
You can find the related objects in the Supported by objects section below.
Required. String that specifies the format of the data to retrieve.
For the available data formats, use the mozTypesAt method.
The following list only contains some of the possible data formats, the complete list is much more extensive.
|Required. A zero-based integer that specifies the position of the item in the list of dragged items. Use the mozItemCount property to retrieve the number of dragged items.|
String that retrieves the specified formatted data from the current drag-and-drop operation. If no data exists for the specified format or position, the mozGetDataAt method returns null.
Example HTML code 1:
Did you find this example helpful?
User Contributed Comments