Click to return to the DHTML, HTML     
ondragend Event     onerror Event     Behaviors Library    
Web Workshop  |  DHTML, HTML & CSS

ondragstart Event


Fires on the element for the moveable behavior when the user first starts a drag operation.

Syntax

XML<Prefix:CustomTag ID = sID STYLE="behavior:url('moveable.htc')" ondragstart = "handler" .../>
ScriptingoMoveable.ondragstart = "handler"

Return Value

No return value.

Remarks

BubblesNo
CancelsYes
To invoke Drag an element participating in the moveable behavior.
Default action Calls the associated event handler if there is one.

Event Object Properties

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

Event Object Properties

altKeyRetrieves the current state of the ALT key.
cancelBubbleSets or retrieves whether the current event should bubble up the hierarchy of event handlers.
clientXRetrieves the x-coordinate of the position of the cursor when the mouse is clicked, relative to the size of the client area of the window but excluding window decorations or scroll bars.
clientYReturns the y-coordinate of the position of the cursor when the mouse is clicked, relative to the size of the client area of the window but excluding window decorations or scroll bars.
ctrlKeyRetrieves the state of the CTRL key.
dataTransferProvides access to predefined clipboard formats for use in data transfer operations.
offsetXRetrieves the horizontal coordinate of the mouse's position relative to the object firing the event.
offsetYRetrieves the vertical coordinate of the mouse's position relative to the object firing the event.
returnValueSets or retrieves the return value from the event.
screenXRetrieves the horizontal position of the mouse, in pixels, relative to the user's screen.
screenYRetrieves the vertical position of the mouse, in pixels, relative to the user's screen.
srcElementRetrieves the object that fired the event.
typeRetrieves the event name from the event object.
xReturns the horizontal position of the mouse when the event fires.
yReturns the vertical position of the mouse when the event fires.

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
moveable


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.