GlobalEventHandlers.onpointerout

一个global event handler 用于处理 pointerout 事件。

语法

var outHandler = targetElement.onpointerout;

返回值

outHandler
元素targetElement的指针输出事件处理程序。

例子

这个例子展示了两种方式来使用onpointerout设置元素的pointerout事件处理程序。

<html>
<script>
function outHandler(ev) {
 // Process the pointerout event
}
function init() {
 var el=document.getElementById("target1");
 el.onpointerout = outHandler;
}
</script>
<body onload="init();">
<div id="target1"> Touch me ... </div>
<div id="target2" onpointerout="outHandler(event)"> Touch me ... </div>
</body>
</html>

规范

Specification Status Comment
Pointer Events – Level 2
onpointerout
Recommendation Non-stable version
Pointer Events
onpointerout
Obsolete Initial definition

浏览器兼容性

BCD tables only load in the browser

相关链接