Js 获取屏幕坐标

Js 获取屏幕坐标
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <script>
        function getScreen(e) {
            var x = e.screenX - e.clientX;
            var y = e.screenY - e.clientY;
            alert("X坐标:" + x + ",Y坐标:" + y);
        }
    </script>
</head>
<body>
    <input type="button" onclick="getScreen(event)" value="测试" />
</body>
</html>
Js 获取屏幕坐标

Js 获取屏幕坐标,布布扣,bubuko.com

Js 获取屏幕坐标

上一篇:HTML 5 教程 Geolocation


下一篇:weblogic10.3.6 自动启动服务后停止的解决方案