Fires on the target element when the user drags the object to a valid drop target.
If the event bubbles and is cancellable, return VARIANT_TRUE to prevent the event from bubbling to other event handlers in the document tree. Return VARIANT_FALSE to allow bubbling.
The DISPID for this event is defined in mshtmdid.h. Use this value to identify the event handler when implementing IDispatch::Invoke.
Bubbles Yes Cancels Yes To invoke
- Drag the selection over a valid drop target within the client.
- Drag the selection to a valid drop target within another window.
Default action Calls the associated event handler.
You can handle the HTMLFrameSiteEvents::ondragenter event on the source or on the target object. Of the target events, it is the first to fire during a drag operation. Target events use the IHTMLDataTransfer::getData method to stipulate which data and data formats to retrieve. The list of drag-and-drop target events includes:
When scripting custom functionality, use the returnValue property to disable the default action.