Example of the getData Method

This example shows how to use the getData method of the dataTransfer object to drop text and dynamically update the innerText of the target object. Because the parameter text is the default for the setData method, it can be omitted as in this script sample.

select and drag this text

drop the text here




[Right-click and choose View Source from the shortcut menu.]

© 2007 Microsoft Corporation. All rights reserved. Terms of use.