The code in this example sets the effectAllowed property to copy and the dropEffect property to display the copy cursor. The default action must be canceled in all events that are handledin this example, ondragstart, ondragover, ondragenter, and ondrop.
Drag the image and drop it onto the text box below. Text data will be pasted into the text box.
[Right-click and choose View Source from the shortcut menu.]
© 2007 Microsoft Corporation. All rights reserved. Terms of use.