Example of the effectAllowed and dropEffect Properties

The code in this example sets the effectAllowed property to move. It sets the dropEffect property to display the move cursor. The default action must be canceled in all events that are handled—in this example, ondragstart, ondragover, ondragenter, and ondrop.

[not this text] [select and drag this text] [not this text]


[drop text here]



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

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