GlobalEventHandlers.onlostpointercapture
The onlostpointercapture
property of the GlobalEventHandlers
mixin is an event handler 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
Browser compatibility
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
onlostpointercapture |
57 |
17 |
59 |
No |
44 |
13 |
57 |
57 |
79 |
43 |
13 |
7.0 |
See also
-
Document: lostpointercapture
event -
HTMLElement: lostpointercapture
event Element.releasePointerCapture()
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onlostpointercapture