GlobalEventHandlers.onmousedown

The onmousedown property returns the onmousedown event handler code on the current element.

Syntax

JavaScript
element.onmousedown = <var>eventHandler</var>

Notes

The mousedown event is raised when the user presses the mouse button.

Specification

Specification Status Comment
WHATWG HTML Living Standard
The definition of 'onmousedown' in that specification.
Living Standard  

License

© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-us/docs/web/api/globaleventhandlers/onmousedown

API HTML DOM Property Reference Référence