Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
pointerEnabled

pointerEnabled property

Deprecated. Indicates if pointer events are fired for pointing input.

Note  This property has been deprecated in the latest version of the W3C Pointer Events specification. The PointerEvent interface can be used as an alternative for detecting pointer event support.

This property is read-only.

Internet Explorer 10

 

Syntax

JavaScript
bEnabled = object.pointerEnabled

 

Property values

Type: boolean

Returns true if pointer input features are supported.

Standards information

Remarks

Because the pointerEnabled property has been deprecated in the W3C Pointer Events specification, the recommended way to detect pointer event support is to check for the PointerEvent interface:


if(window.PointerEvent) {
   o.addEventListener("pointerdown", handler);
} else if(window.MSPointerEvent) {
   o.addEventListener("MSPointerDown", handler);
}

As of Internet Explorer 11, the Microsoft vendor prefixed version of this property (msPointerEnabled) is no longer supported and may be removed in a future release.

See also

navigator
PointerEvent
maxTouchPoints
Pointer events
Windows Store apps using JavaScript Samples: HTML scrolling, panning and zooming sample

 

 

Show:
© 2015 Microsoft