diff --git a/entries/mousedown.xml b/entries/mousedown.xml index dc1626fd..ea8d9a0e 100644 --- a/entries/mousedown.xml +++ b/entries/mousedown.xml @@ -54,7 +54,7 @@ $( "#other" ).click(function() { });
After this code executes, clicks on Trigger the handler will also alert the message.
-The mousedown
event is sent when any mouse button is clicked. To act only on specific buttons, we can use the event object's which
property. Not all browsers support this property (Internet Explorer uses button instead), but jQuery normalizes the property so that it is safe to use in any browser. The value of which
will be 1 for the left button, 2 for the middle button, or 3 for the right button.
The mousedown
event is sent when any mouse button is clicked. To act only on specific buttons, we can use the event object's which
property. Not all browsers support this property (Internet Explorer uses button instead), but jQuery normalizes the property so that it is safe to use in any browser. The value of which
will be 1 for the left button, 2 for the middle button, or 3 for the right button.
This event is primarily useful for ensuring that the primary button was used to begin a drag operation; if ignored, strange results can occur when the user attempts to use a context menu. While the middle and right buttons can be detected with these properties, this is not reliable. In Opera and Safari, for example, right mouse button clicks are not detectable by default.
If the user clicks on an element, drags away from it, and releases the button, this is still counted as a mousedown
event. This sequence of actions is treated as a "canceling" of the button press in most user interfaces, so it is usually better to use the click
event unless we know that the mousedown
event is preferable for a particular situation.