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

Syntax

var gotCaptureHandler = target.ongotpointercpature;

Return value

gotCaptureHandler
The gotpointercapture event handler for element target.

Example

<html>
<script>
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;
}
</script>
<body onload="init();">
<div id="target"> Touch me ... </div>
</body>
</html>

Specifications

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

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support55 ?

59

411

11

10 ms

42 No
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support5555 ?

No

411

42 No ?

1. From version 41: this feature is behind the dom.w3c_pointer_events.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.

See also

Document Tags and Contributors

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