Programming/Javascript
마우스로 클릭 시 좌표 잡아내기
왕계란
2009. 1. 5. 09:25
- <html>
- <head>
- <title></title>
- <script>
- document.onmousedown = function(nsEvent) {
- var theEvent = nsEvent ? nsEvent : window.event;
- alert("X : " + theEvent.screenX + ", Y : " + theEvent.screenY);
- }
- </script>
- </head>
- <body>
- </body>
- </html>