dragDrop Method

Internet Development Index

Initiates a drag event.

Syntax

bDragOK = object.dragDrop()

Return Value

Boolean. Returns one of the following values:

trueDrag operation was completed successfully.
falseDrag operation was cancelled.

Remarks

You can use this method to fire the ondragstart event. If the event is not cancelled, a drag operation is started. The method returns true when the mouse is released. If the ondragstart event is cancelled, the method immediately returns false.

Standards Information

There is no public standard that applies to this method.

Applies To

A, AREA, BASEFONT, BGSOUND, BODY, BR, BUTTON, CAPTION, COL, COMMENT, DD, DIV, DT, EMBED, FONT, FORM, FRAME, HEAD, HR, HTML, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, ISINDEX, LABEL, LEGEND, LI, MAP, MARQUEE, META, OBJECT, OL, OPTION, P, SCRIPT, SELECT, SPAN, STYLE, TABLE, TD, TEXT, TEXTAREA, TITLE, TR, UL