জাভাস্ক্রিপ্টে কার্সরের কো-অর্ডিনেট পেতে event.screenX এবং event.screenY ব্যবহার করা হয়।
উদাহরণ
<!DOCTYPE html> <html> <head> <script> function coordinatesFunc(event) { document.write("Coordinate(X) = " + event.screenX + "<br>Coordinate(Y) = " + event.screenY); } </script> </head> <body> <div onmousedown = "coordinatesFunc(event)">Click me to get coordinates of cursor relative to screen.</p> </body> </html>