Javascript Reference
Categories: ondrop

javascript ondrop Description

@Aug. 17, 2009, 9:02 a.m.
ondrop Firefox/Netscape/NN n/a IE 5(Win) Chrome/Safari/DOM n/a  

 

Bubbles: Yes; Cancelable: Yes  

Fires on the drop target element when the user releases the mouse button after a drag action. Fires just before the ondragend event of the owner of the dragged content. Prevent default actions of the drop target's ondragenter and ondragover events (by setting event.returnValue to false in their respective event handler functions) so that the target's ondrop event can do its job without interference from the normal system response to dragging. See the dataTransfer object for an example of drag-related event interaction, including the effectAllowed property, which controls the cursor shape at the drop target.

 
Typical Targets

All rendered elements and document object.


Powered by Linode.