Our volunteers haven't translated this article into Türkçe yet. Join us and help get the job done!
You can also read the article in English (US).

The ongotpointercapture property of the GlobalEventHandlers mixin is an EventHandler that processes gotpointercapture events.

Syntax

target.ongotpointercapture = functionRef;

Value

functionRef is a function name or a function expression. The function receives a PointerEvent object as its sole argument.

Example

function overHandler(event) {
  // Determine the target event's gotpointercapture handler
  let gotCaptureHandler = event.target.ongotpointercapture;
}

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

Specifications

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

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
ongotpointercaptureChrome Full support 57Edge ? Firefox Full support 59IE ? Opera Full support 44Safari ? WebView Android Full support 57Chrome Android Full support 57Firefox Android No support NoOpera Android Full support 43Safari iOS ? Samsung Internet Android ?

Legend

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

See also

Document Tags and Contributors

Last updated by: Wind1808,