MouseEvent
Event that is fired when the mouse is clicked. Learn more.
Additional information about this section
Store values associated with an object
- clientX
Gets the distance in pixels between the pointer and the left edge of the browser's viewable area.
- clientY
Gets the distance in pixels between the pointer and the top edge of the browser's viewable area.
- offsetX
Gets the distance in pixels between the pointer and the left edge of the element that triggered this event.
- offsetY
Gets the distance in pixels between the pointer and the top edge of the element that triggered this event.
- pageX
Gets the distance in pixels between the pointer and the left edge of the page.
- pageY
Gets the distance in pixels between the pointer and the top edge of the page.
- screenX
Gets the distance in pixels between the pointer and the left edge of the screen or screens.
- screenY
Gets the distance in pixels between the pointer and the top edge of the screen or screens.
- context
Gets the context in which an event was fired.
- target
Gets the element that the event was fired on.
- type
Gets the type of event that was fired.