Get to know MDN better
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2020.
* Some parts of this feature may have varying levels of support.
The pointerType read-only property of the PointerEvent interface indicates the device type (mouse, pen, or touch) that caused a given pointer event.
The event's pointer type. The supported values are the following strings:
"mouse"The event was generated by a mouse device.
"pen"The event was generated by a pen or stylus device.
"touch"The event was generated by a touch, such as a finger.
If the device type cannot be detected by the browser, the value can be an empty string (""). If the browser supports pointer device types other than those listed above, the value should be vendor-prefixed to avoid conflicting names for different types of devices.
This example illustrates using the value of the pointerType property to call the appropriate pointer type processing function.
| Pointer Events # dom-pointerevent-pointertype |
Enable JavaScript to view this browser compatibility table.
This page was last modified on Sep 18, 2025 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.