Search.../

MouseEvent

Event that is fired when the mouse is clicked. Learn more.

Guides

Additional information about this section

Properties

Store values associated with an object

  • clientX

    Gets the distance in pixels between the mouse pointer and the left edge of the browser's viewable area.

  • clientY

    Gets the distance in pixels between the mouse pointer and the top edge of the browser's viewable area.

  • context

    Gets the context in which an event was fired.

  • offsetX

    Gets the distance in pixels between the mouse pointer and the left edge of the element that triggered this event.

  • offsetY

    Gets the distance in pixels between the mouse pointer and the top edge of the element that triggered this event.

  • pageX

    Gets the distance in pixels between the mouse pointer and the left edge of the page.

  • pageY

    Gets the distance in pixels between the mouse pointer and the top edge of the page.

  • screenX

    Gets the distance in pixels between the mouse pointer and the left edge of the screen or screens.

  • screenY

    Gets the distance in pixels between the mouse pointer and the top edge of the screen or screens.

  • target

    Gets the element that the event was fired on.

  • type

    Gets the type of event that was fired.

Mixes in: