Element: mousedown event
The mousedown event is fired at an Element when a pointing device button is pressed while the pointer is inside the element.
Note: This differs from the click event in that click is fired after a full click action occurs; that is, the mouse button is pressed and released while the pointer remains inside the same element. mousedown is fired the moment the button is initially pressed.
| Bubbles | Yes |
|---|---|
| Cancelable | Yes |
| Interface | MouseEvent |
| Event handler property | onmousedown |
Examples
See mousemove_event for example code.
Specifications
| Specification |
|---|
| UI Events # event-type-mousedown |
Browser compatibility
BCD tables only load in the browser