JS does not provide convenient little functions for you to get all of
that data, but the event itself has this information available to it. I
recommend reading
http://www.quirksmode.org/js/events_properties.html
to get a better handle on what can be done here.
This should handle that stuff. Most people doing extensive event work
like this usually write little wrappers for event management that
provide cleaner functionality. Look into prototype.js or dojo's events
system for some examples.
-E
RC wrote:
> I know some JavaScript mouse events are:
>
> onClick, onMouseOver, onMouseOut, onMouseDown and onMouseUp.
>
> Are there more like:
>
> onMousePress, onMouseDrag, onMouseMove
>
> In Java there are:
>
> mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased,
> mouseDragged, mouseMoved and mouseWheelMoved.
>
> Also in Java can detected which mouse button (left, middle or right)
> has pressed, released or dragged.
>
> Thank Q!