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


var gotCaptureHandler = target.ongotpointercapture;

Return value

元素 target 的gotpointercapture 事件句柄。 .


function overHandler(ev) {
 // Determine the target event's gotpointercapture handler
 var gotCaptureHandler =;
function init() {
 var el=document.getElementById("target");
 el.onpointerover = overHandler;
<body onload="init();">
<div id="target"> Touch me ... </div>


Specification Status Comment
Pointer Events – Level 2
Working Draft 无稳定版
Pointer Events
Recommendation 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!

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


此页面的贡献者: mdnwebdocs-bot, sunline.bucket, StorytellerF
最后编辑者: mdnwebdocs-bot,