• Skip to main content
  • Skip to search
  • Skip to select language
MDN Web Docs
  • 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

    • Accessibility

      Build web projects usable for all

    • Web Technology

      Web technology reference for developers

  • Learn
    • 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

  • Plus
    • Overview

      A customized MDN experience

    • AI Help

      Get real-time assistance and support

    • Updates

      All browser compatibility updates at a glance

    • Documentation

      Learn how to use MDN Plus

    • FAQ

      Frequently asked questions about MDN Plus

  • Curriculum New
  • Blog
    • Playground

      Write, test and share your code

    • HTTP Observatory

      Scan a website for free

    • AI Help

      Get real-time assistance and support

  • Log in
  • Sign up for free
  1. References
  2. Web APIs
  3. MouseEvent
  4. x
    • Deutsch
    • 日本語
    • 中文 (简体)

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 Non-standard Deprecated
    6. MutationEvent Non-standard Deprecated
    7. TextEvent Deprecated
    8. UIEvent
    9. WheelEvent

In this article

  • Specifications
  • Browser compatibility

MouseEvent: x property

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since April 2017.

  • Learn more
  • See full compatibility
  • Report feedback

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

Specifications

Specification
CSSOM View Module
# dom-mouseevent-x

Browser compatibility

Help improve MDN

Learn how to contribute.

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

View this page on GitHub • Report a problem with this content
MDN logo

Your blueprint for a better internet.

  • MDN on Bluesky
  • MDN on Mastodon
  • MDN on X (formerly Twitter)
  • MDN on GitHub
  • MDN Blog RSS Feed

MDN

  • About
  • Blog
  • Careers
  • Advertise with us

Support

  • Product help
  • Report an issue

Our communities

  • MDN Community
  • MDN Forum
  • MDN Chat

Developers

  • Web Technologies
  • Learn Web Development
  • MDN Plus
  • Hacks Blog
  • Website Privacy Notice
  • Cookies
  • Legal
  • Community Participation Guidelines

Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2025 by individual mozilla.org contributors. Content available under a Creative Commons license.