HTML DOM
The onlostpointercapture event handler 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>
规范
浏览器兼容性
参见
- 相关事件
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
