Share via


ondragover event

[This documentation is preliminary and is subject to change.]

Fires on the target element continuously while the user drags the object over a valid drop target.

Syntax

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

Standards information

There are no standards that apply here.

Event information

Synchronous No
Bubbles No
Cancelable No

Event handler parameters

Remarks

The ondragover event fires on the target object after the ondragenter event has fired.

When scripting custom functionality, use the 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.

The pEvtObj parameter is required for the following interfaces:

See also

About DHTML Data Transfer

 

 

Build date: 1/23/2012