Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ondragenter event

Fires on the target element when the user drags the object to a valid drop target.

Syntax

HTML Attribute <element ondragenter = "handler(event)">
Event Property object.ondragenter = handler;
attachEvent Method object.attachEvent("ondragenter", handler)
addEventListener Method object.addEventListener("dragenter", handler, useCapture)

 

Event information

SynchronousNo
BubblesYes
CancelableYes

 

Event handler parameters

pEvtObj [in]

Type: IHTMLEventObj

Standards information

There are no standards that apply here.

Remarks

You can handle the HTMLAnchorEvents2::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 IHTMLEventObj::returnValue property to disable the default action.

Calls the associated event handler.

To invoke this event, do one of the following:

  • Drag the selection over a valid drop target within the client.
  • Drag the selection to a valid drop target within another window.

See also

About DHTML Data Transfer

 

 

Community Additions

ADD
Show:
© 2015 Microsoft