The ongotpointercapture EventHandler property of the GlobalEventHandlers interface returns the event handler (function) for the gotpointercapture event type.


window.ongotpointercapture = functionReference



function overHandler(ev) {
 // Determine the target event's gotpointercapture handler
 var gotCaptureHandler =;

function init() {
 var el = document.getElementById('target');
 el.ongotpointercapture = overHandler;



Specification Status Comment
Pointer Events – Level 2
The definition of 'onlostpointercapture' in that specification.
Working Draft  

Browser compatibility

Update compatibility data on GitHub
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
Basic supportChrome Full support 57Edge ? Firefox Full support 59IE ? Opera Full support 44Safari ? WebView Android Full support 57Chrome Android Full support 57Edge Mobile ? Firefox Android No support NoOpera Android Full support 44Safari iOS ? Samsung Internet Android ?


Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown

See also

Document Tags and Contributors

Contributors to this page: chrisdavidmills, fscholz, david_ross, jpmedley
Last updated by: chrisdavidmills,