Element.onlostpointercapture

Nasi wolontariusze nie przetłumaczyli jeszcze tego artykułu na język Polski. Dołącz do nas i pomóż go przetłumaczyć!
Można także przeczytać artykuł w języku: English (US).

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

Syntax

var lostCaptureHandler = target.onlostpointercpature;

Return value

lostCaptureHandler
The lostpointercapture event handler for element target.

Example

<html>
<script>
function overHandler(ev) {
 // Determine the target event's lostpointercapture handler
 var lostCaptureHandler = ev.target.onlostpointercapture;
}
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 'onlostpointercapture' in that specification.
Working Draft Non-stable version.
Pointer Events
The definition of 'onlostpointercapture' 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

Autorzy i etykiety dokumentu

Ostatnia aktualizacja: fscholz,