• Skip to main content
  • Skip to search
  • Skip to select language

DescopeProtect your remote MCP server with three lines of code. Add OAuth, PKCE, dynamic client registration and more.Get startedAd

Don't want to see ads?
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. UIEvent
  4. detail
    • Is this useful?
    • Deutsch
    • Français
    • 日本語
    • 한국어
    • 中文 (简体)

In this article

  • Specifications
  • Browser compatibility
  1. UI Events
  2. UIEvent
  3. Constructor
    1. UIEvent()
  4. Instance properties
    1. detail
    2. sourceCapabilities Experimental
    3. view
    4. which Deprecated
  5. Instance methods
    1. initUIEvent() Deprecated
  6. Inheritance
    1. Event
  7. Related pages for UI Events
    1. CompositionEvent
    2. FocusEvent
    3. InputEvent
    4. KeyboardEvent
    5. MouseEvent
    6. MouseScrollEvent Non-standard Deprecated
    7. MutationEvent Non-standard Deprecated
    8. TextEvent Deprecated
    9. WheelEvent
monday.com
You deserve a better sprint management toolTry out monday dev—a frictionless project management tool your developers will like.Start for free
Ad
Don't want to see ads?

In this article

  • Specifications
  • Browser compatibility
monday.com
You deserve a better sprint management toolTry out monday dev—a frictionless project management tool your developers will like.Start for free
Ad
Don't want to see ads?

UIEvent: detail property

The UIEvent.detail read-only property, when non-zero, provides the current (or next, depending on the event) click count.

For click or dblclick events, UIEvent.detail is the current click count.

For mousedown or mouseup events, UIEvent.detail is 1 plus the current click count.

For all other UIEvent objects, UIEvent.detail is always zero.

Specifications

Specification
UI Events
# dom-uievent-detail

Browser compatibility

Help improve MDN

Learn how to contribute.

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

View this page on GitHub • Report a problem with this content
GitLabAd
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.