Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

screenY event property

screenY event property

Event Object Reference Event Object


Definition and Usage

The screenY event property returns the vertical coordinate of the mouse pointer relative to the screen when the event occurs.

Syntax

event.screenY


Example

Example

The following example shows the coordinates of the mouse pointer when the event occurs:

Runoob Tutorial(runoob.com)

Click somewhere in the document. A message box will show the x and y coordinates of the pointer relative to the screen.

Try it »


Event Object Reference Event Object