<html> <head> <meta http-equiv="content-type" content="text/html" charset=GB2312"/> <title> 4.5 window.event应用 </title> <script> function body_onclick(){ alert("鼠标点击的坐标是 x:"+event.x+",y:"+event.y); } </script> </head> <body style="overflow:auto;padding:0px;margin:0px;"onclick="body_onclick();"> </body> </html>
获取鼠标的坐标
课连续点击