ইভেন্ট ট্রিগার হলে screenY মাউস ইভেন্ট মাউস পয়েন্টারের ভার্টিক্যাল কো-অর্ডিনেট রিটার্ন করে।
উদাহরণ
<!DOCTYPE html> <html> <body> <p onclick = "coordsFunc(event)">Click here to get the x (horizontal) and y (vertical) coordinates of the mouse pointer.</p> <script> function coordsFunc(event) { var x_coord = event.screenX; var y_coord = event.screenY; var xycoords = "X coords= " + x_coord + ", Y coords= " + y_coord; document.write(xycoords); } </script> </body> </html>