GlobalEventHandlers.onlostpointercapture

The onlostpointercapture EventHandler (en-US) property of the GlobalEventHandlers interface returns the event handler (function) for the lostpointercapture event type.

语法

window.onlostpointercapture = functionReference

 

例子

<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.onlostpointercapture = overHandler;
}
</script>
<body onload="init();">
<div id="target"> Touch me ... </div>
</body>
</html>

 

规范

规范 状态 评论
Pointer Events – Level 2
onlostpointercapture
Recommendation  

 

浏览器兼容性

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help! (en-US)

Feature Chrome Edge Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support 57.0 ? ? ? 44 ?
Feature Android Android Webview Edge Firefox Mobile (Gecko) Firefox OS IE Mobile Opera Mobile Safari Mobile Chrome for Android
Basic support 未实现 57.0 ? ? ? ? 44 ? 57.0

See also