asp.net.ph

ondrag Event

DHTML Events


Fires on the source object continuously during a drag operation.

Syntax


Inline HTML <element ondrag = "handler" ... > All platforms
Event property object.ondrag = handler ECMA-262 Language Specification
Named script <script FOR=object EVENT = ondrag> Internet Explorer® only

Remarks


Bubbles Yes
Cancels Yes
To invoke
  • Drag a text selection or object within the browser.
  • Drag a text selection or object to another browser.
  • Drag a text selection or object to a drop target in another application.
  • Drag a text selection or object to the system desktop.
Default action Calls the associated event handler if there is one.

Fires on the source object, right after the ondragstart event. The ondrag event fires throughout the drag operation, whether the selection being dragged is over the drag source, a valid target, or an invalid target.

Event Object Properties

While event handlers in the Document Object Model do not receive parameters directly, the handler can query the event object for data.

Event Object Properties


Applies To

A, ACRONYM, ADDRESS, AREA, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, DD, DEL, DFN, DIR, DIV, DL, document, DT, EM, FIELDSET, FONT, FORM, Hn, HR, HTMLAREA, I, IMG, INPUT, KBD, LABEL, LI, LISTING, MAP, MARQUEE, MENU, NOBR, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TR, TT, U, UL, VAR, XMP

See Also

Data Transfer Overview, ondragstart




Contents
HTML Elements
HTML Element Attributes
CSS Attributes
DOM Objects
DOM Object Properties
DOM Events Reference
DOM Methods Reference
DOM Collections Reference
 

Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph