We're looking for a person or people to help audit MDN to find places we could speed up. Is this you or someone you know? Check out the RFP: https://mzl.la/2IHcMiE


ongotpointercapture is an EventHandler property of the Element interface that returns the event handler (function) for the gotpointercapture event type.


var gotCaptureHandler = target.ongotpointercpature;

Return value

The gotpointercapture event handler for element target.


function overHandler(ev) {
 // Determine the target event's gotpointercapture handler
 var gotCaptureHandler = ev.target.ongotpointercapture;
function init() {
 var el=document.getElementById("target");
 el.onpointerover = overHandler;
<body onload="init();">
<div id="target"> Touch me ... </div>


Specification Status Comment
Pointer Events – Level 2
The definition of 'ongotpointercapture' in that specification.
Working Draft Non-stable version.
Pointer Events
The definition of 'ongotpointercapture' in that specification.
Recommendation Initial definition.

Browser compatibility

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support 35[1] 59 (59) 10 -ms
? No support
Feature Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support ? 35[1] 29.0 (29)[2] 10 -ms
? No support

[1] This was implemented in bug 248918.

[2] Supported behind the preference dom.w3c_pointer_events.enabled, defaulting to false.


See also

Document Tags and Contributors

 Contributors to this page: chrisdavidmills, erikadoyle, rolfedh, AFBarstow
 Last updated by: chrisdavidmills,