您的位置:首页 > Web前端 > JavaScript

JavaScript-4.6鼠标事件监听,获取鼠标坐标window.event---ShinePans

2014-06-17 14:54 716 查看
<html>
<head>
<meta http-equiv="content-type" content="text/html" charset=GB2312"/>
<title> 4.5 window.event应用 </title>
<script>
function body_onclick(){
alert("鼠标点击的坐标是\r\nx:"+event.x+",y:"+event.y);
}
</script>
</head>
<body style="overflow:auto;padding:0px;margin:0px;"onclick="body_onclick();">
</body>
</html>


获取鼠标的坐标

课连续点击



内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: