The onmovestart and onmouseend events
Click the DIV and move it around the screen. The onmovestart event fires as the DIV begins to move and the background color and inner text of the DIV change. The onmouseend event fires when the mouse button is released and the DIV stops moving. Again, the background color and inner text changes.
[Right-click and choose View Source from the shortcut menu.]
© 2007 Microsoft Corporation. All rights reserved. Terms of use.