Element.ongotpointercapture
ongotpointercapture
是一个Element
接口的EventHandler
(en-US) 属性,返回一个gotpointercapture
事件类型的事件句柄 (function) .
语法
var gotCaptureHandler = target.ongotpointercapture;
Return value
gotCaptureHandler
- 元素
target
的gotpointercapture 事件句柄。 .
Example
<html>
<script>
function overHandler(ev) {
// Determine the target event's gotpointercapture handler
var gotCaptureHandler = ev.target.ongotpointercapture;
}
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 ongotpointercapture |
Recommendation | 无稳定版 |
Pointer Events ongotpointercapture |
Obsolete | Initial definition. |
Browser compatibility
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 | 未实现 | (Yes) | (Yes) [1] | 10 | 未实现 | 未实现 |
Feature | Android | Android Webview | Chrome for Android | Edge | Firefox Mobile (Gecko) | Firefox OS | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|---|---|---|
Basic support | 未实现 | 未实现 | 未实现 | (Yes) | 未实现 | 未实现 | 10 | 未实现 | 未实现 |
[1] Implementation withdrawn. See bug 1166347.