Fires on the source object when the user starts to drag a text selection or selected object.
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 selected text or object. Default action Calls the associated event handler.
The HTMLFormElementEvents::ondragstart event is the first to fire when the user starts to drag the mouse. It is essential to every drag operation, yet is just one of several source events in the data transfer object model. Source events use the IHTMLDataTransfer::setData method of the dataTransfer object to provide information about data being transferred. Source events include HTMLFormElementEvents::ondragstart, ondrag, and ondragend.
When dragging anything other than an img object, some text to be dragged must be selected.