A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/offsetX below:

MouseEvent: offsetX property - Web APIs

MDN Web Docs
  1. Web
  2. Web APIs
  3. MouseEvent
  4. offsetX

Filter sidebar

In this article
  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
  9. Guides
    1. Code values for keyboard events
    2. Key values for keyboard events
In this article MouseEvent: offsetX property

Baseline Widely available

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

The offsetX read-only property of the MouseEvent interface provides the offset in the X coordinate of the mouse pointer between that event and the padding edge of the target node.

Value

A double floating point value in pixels.

Early versions of the spec defined this as an integer.

Specifications Specification CSSOM View Module
# dom-mouseevent-offsetx
Browser compatibility See also Help improve MDN Was this page helpful to you? Learn how to contribute

.

This page was last modified on Mar 4, 2025 by MDN contributors.

View this page on GitHub

•

Report a problem with this content

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4