<script type="text/javascript"> document.onmousedown = function(e) { // InternetExplorer 用 if (!e) e= window.event; xp= e.clientX; yp= e.clientY; window.alert("XP:" + xp + " YP:" + yp); } </script> </head> <body> <h1>Mouse Position</h1> <h3>マウスをクリックして下さい。</h3> |
document.onmousedown = function(e) { // InternetExplorer 用 if (!e) e= window.event; xp= e.clientX; yp= e.clientY; window.alert("XP:" + xp + " YP:" + yp); } |