触发 onmouseout
属性事件当鼠标指针移出元素时。
没有。
<element onmouseout="script or Javascript function name">
所有HTML元素,EXCEPT:
<base>, <bdo>, <br>, <head>, <html>, <iframe>, <meta>, <param>, <script>, <style>, <title>
onmouseout |
Yes | Yes | Yes | Yes | Yes |
<!DOCTYPE html>
<html>
<body>
<p id="p1" onmouseout="onmouseOut()" onmouseup="mouseUp()">
Click the text!
</p>
<script>
function onmouseOut() {
console.log("Out");
}
function mouseUp() {
console.log("up");
}
</script>
</body>
</html>