• Skip to main content
  • Skip to search
  • Skip to select language
webdocs.dev
  • References
    • Overview / Web Technology

      Web technology reference for developers

    • HTML

      Structure of content on the web

    • CSS

      Code used to describe document style

    • JavaScript

      General-purpose scripting language

    • HTTP

      Protocol for transmitting web resources

    • Web APIs

      Interfaces for building web applications

    • Web Extensions

      Developing extensions for web browsers

    • Web Technology

      Web technology reference for developers

  • Guides
    • Overview / MDN Learning Area

      Learn web development

    • MDN Learning Area

      Learn web development

    • HTML

      Learn to structure web content with HTML

    • CSS

      Learn to style content using CSS

    • JavaScript

      Learn to run scripts in the browser

    • Accessibility

      Learn to make the web accessible to all

  • Play New
  1. References
  2. Web APIs
  3. MouseEvent
  4. x

In this article

  • Specifications
  • Browser compatibility
  1. UI Events
  2. MouseEvent
  3. Constructor
    1. MouseEvent()
  4. Static properties
    1. WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN Non-standard
    2. WEBKIT_FORCE_AT_MOUSE_DOWN Non-standard
  5. Instance properties
    1. altKey
    2. button
    3. buttons
    4. clientX
    5. clientY
    6. ctrlKey
    7. layerX Non-standard
    8. layerY Non-standard
    9. metaKey
    10. movementX
    11. movementY
    12. mozInputSource Non-standard
    13. offsetX
    14. offsetY
    15. pageX
    16. pageY
    17. relatedTarget
    18. screenX
    19. screenY
    20. shiftKey
    21. webkitForce Non-standard
    22. x
    23. y
  6. Instance methods
    1. getModifierState()
    2. initMouseEvent() Deprecated
  7. Inheritance:
    1. UIEvent
    2. Event
  8. Related pages for UI Events
    1. CompositionEvent
    2. FocusEvent
    3. InputEvent
    4. KeyboardEvent
    5. MouseScrollEvent
    6. MutationEvent
    7. UIEvent
    8. WheelEvent

In this article

  • Specifications
  • Browser compatibility

MouseEvent: x property

The MouseEvent.x property is an alias for the MouseEvent.clientX property.

Specifications

Specification
CSSOM View Module
# dom-mouseevent-x

Browser compatibility

BCD tables only load in the browser

Found a content problem with this page?

  • Edit the page on GitHub.
  • Report the content issue.
  • View the source on GitHub.
Want to get more involved? Learn how to contribute.

This page was last modified on Apr 7, 2023 by MDN contributors.

webdocs.dev
  • GitHub

Support

  • Report an issue

Our communities

  • Discord

Developers

  • Web Technologies
  • Learn Web Development

Portions of this content are ©1998–2023 by individual contributors. Content available under a Creative Commons license.