--- title: GlobalEventHandlers.onmousedown slug: Web/API/GlobalEventHandlers/onmousedown translation_of: Web/API/GlobalEventHandlers/onmousedown ---
onmousedown属性用来获取或设置当前元素的mousedown
事件的事件处理函数.
element.onmousedown= event handling code
在当前元素上鼠标按下瞬间会触发mousedown事件.
不属于任何公开的规范.
{{ languages( { "fr": "fr/DOM/element.onmousedown", "pl": "pl/DOM/element.onmousedown", "en": "en/DOM/element.onmousedown" } ) }}