Web/API/GlobalEventHandlers/onlostpointercapture

From Get docs


The onlostpointercapture property of the GlobalEventHandlers mixin is an EventHandler that processes lostpointercapture events.

Syntax

target.onlostpointercapture = 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 lostpointercapture handler
  let lostCaptureHandler = event.target.onlostpointercapture;
}

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

Specifications

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

Browser compatibility

Update compatibility data on GitHub

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
onlostpointercapture Chrome

Full support 57

Edge

Full support ≤79

Firefox

Full support 59

IE

?

Opera

Full support 44

Safari

?

WebView Android

Full support 57

Chrome Android

Full support 57

Firefox Android

No support No

Opera Android

Full support 43

Safari iOS

?

Samsung Internet Android

Full support 7.0

Legend

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


See also