Skip to main content
releasePointerCapture method

Releases a pointer captured by an element (using the setPointerCapture method).

Note  As of Internet Explorer 11, the Microsoft vendor prefixed version of this method (msReleasePointerCapture) is no longer supported and may be removed in a future release. Instead, use the non-prefixed lowercase name, releasePointerCapture, which is better for standards compliance and future compatibility.
Internet Explorer 10





pointerId [in]

Type: Integer

Identifier of the pointer to be released.

Return value

This method does not return a value.


Starting with IE11, an element must have capture on a pointer (by using setPointerCapture) in order to be able to release capture on that particular pointer. In Internet Explorer 10, a call to releasePointerCapture on an element releases capture for the specified pointer from whichever element currently has capture.

If the specified pointerId does not match any existing pointers, a DOMException is thrown with the name InvalidPointerId.

See also

Pointer Events
Windows Store apps using JavaScript Samples: HTML scrolling, panning and zooming sample