亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

screenY 事件屬性

screenY 事件屬性

定義和用法


screenY 事件屬性可返回事件發(fā)生時鼠標指針相對于屏幕的垂直坐標。

語法

event.screenY

實例

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script type="text/javascript">
function coordinates(event){
	x=event.screenX
	y=event.screenY
	alert("X=" + x + " Y=" + y)
}
</script>
</head>
<body onmousedown="coordinates(event)">

<p>
在文檔中點擊某個位置。消息框會提示出指針相對于屏幕的 x 和 y 坐標。
</p>

</body>
</html>

運行實例 ?

點擊 "運行實例" 按鈕查看在線實例