MouseEvent DOM HTML

Object MouseEvent

الحوادث التي تحدث عند التفاعل بين الفأرة وملف الـ HTML تنتمي إلى Object MouseEvent.

صفات ومكتبات حوادث الفأرة

صفات/مكتبات وصف
altKey returns whether the "ALT" key was pressed when the mouse event was triggered.
button returns the mouse button pressed when the mouse event is triggered.
buttons returns the mouse button pressed when the mouse event is triggered.
clientX returns the horizontal coordinate of the mouse pointer relative to the current window when the mouse event was triggered.
clientY returns the vertical coordinate of the mouse pointer relative to the current window when the mouse event was triggered.
ctrlKey returns whether the "CTRL" key was pressed during the keydown mouse event.
getModifierState() returns true if the specified key is activated.
metaKey returns whether the "META" key was pressed when the event was triggered.
movementX returns the horizontal coordinate of the mouse pointer relative to the position of the previous mousemove event.
movementY returns the vertical coordinate of the mouse pointer relative to the position of the previous mousemove event.
offsetX returns the horizontal coordinate of the mouse pointer relative to the edge of the target element.
offsetY returns the vertical coordinate of the mouse pointer relative to the edge of the target element.
pageX returns the horizontal coordinate of the mouse pointer relative to the document when the mouse event was triggered.
pageY returns the vertical coordinate of the mouse pointer relative to the document when the mouse event was triggered.
region  
relatedTarget returns the element related to the element associated with the mouse event.
screenX returns the horizontal coordinate of the mouse pointer relative to the screen when the event was triggered.
screenY returns the vertical coordinate of the mouse pointer relative to the screen when the event was triggered.
shiftKey returns whether the "SHIFT" key was pressed when the event was triggered.
which returns the mouse button pressed when the mouse event is triggered.

الصفات والمетодات الموروثة

Inherits all properties and methods from the following objects: MouseEvent

UiEvent

مثلث الـEvent

نوع الحدث

أنواع هذه الحوادث تنتمي إلى Object MouseEvent:

حدث وصف
onclick عندما يضغط المستخدم على العنصر، يحدث هذا الحدث.
oncontextmenu عندما يضغط المستخدم على زر الماوس الأيمن على عنصر لفتح قائمة السياق، يحدث هذا الحدث.
ondblclick عندما يضرب المستخدم في العنصر، يحدث هذا الحدث.
onmousedown عندما يضغط المستخدم على زر الماوس في العنصر، يحدث هذا الحدث.
onmouseenter عندما يتحرك المؤشر إلى العنصر، يحدث هذا الحدث.
onmouseleave يحدث هذا الحدث عند سحب المؤشر خارج العنصر.
onmousemove يحدث هذا الحدث عند تحريك المؤشر فوق العنصر.
onmouseout يحدث هذا الحدث عند سحب مؤشر الماوس خارج العنصر أو أحد أبنائه.
onmouseover يحدث هذا الحدث عند تحريك المؤشر فوق العنصر أو أحد أبنائه.
onmouseup يحدث هذا الحدث عند إطلاق زر الماوس فوق العنصر.