Element.ongotpointercapture

ongotpointercapture 是一个Element 接口的EventHandler 属性,返回一个gotpointercapture 事件类型的事件句柄 (function) .

语法

var gotCaptureHandler = target.ongotpointercpature;

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
Editor's Draft 无稳定版
Pointer Events
ongotpointercapture
Recommendation Initial definition.

Browser compatibility

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.

See also

文档标签和贡献者

 此页面的贡献者: StorytellerF
 最后编辑者: StorytellerF,