Mouse Events
JavaScript FAQ
|
Keyboard & Mouse Events FAQ
What event properties can I use to analyze mouse events?
How do I check whether the user clicked the left or right mouse button?
Can I disable the context menu that shows up when the user clicks the right mouse button?
Can I disable the right-click context menu for a particular image only?
How do I detect mouse events with Ctrl, Alt, and Shift keys?
Can I disable the default browser response for Shift-click?
How do I determine where exactly the user clicked the mouse?
See also
OnMouseOver
and
OnMouseDown
The following questions are applicable to mouse events as well as keyboard events:
How do I add an event handler to an HTML page element?
How do I remove an event handler from a page element?
What is
event bubbling
?
How do I cancel event bubbling?
How do I prevent the browser's default action in a JavaScript event handler?
How do I determine the event's target element?
Copyright
© 1999-2011,
JavaScripter.net
.