<table border=1 cellpadding=15 cellspacing=15 style="position:relative;left:100;top:100"> <tr><td> <div onclick="show()" style="background:silver;cursor:hand"> Click here to show. </div> </td></tr> </table> <script> function show(){ alert("window.event.x:"+window.event.x+"\nwindow.event.y:"+window.event.y+"\nevent.clientX:"+event.clientX+"\nevent.clientY:"+event.clientY+"\nevent.offsetX:"+event.offsetX+"\nevent.offsetY:"+event.offsetY+"\nwindow.event.screenX:"+window.event.screenX+"\nwindow.event.screenY:"+window.event.screenY); } </script> [Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]