javascript event screenX, screenY

screenX, screenYNN 4 IE 4 DOM 2

Read-only

Provide the horizontal and vertical pixel coordinate points where the cursor was located on the video screen when the event occurred. The top-left corner of the screen is point 0,0. There is no particular coordination with the browser window or document, unless you have positioned the window and know where the active window area is in relation to the screen.

 
Example
 
if (evt.screenX < 5 || evt.screenY < 5) {
    alert("You\'re too close to the edge!");
}
 
Value

Any positive integer or zero.

 
Default

0


783,Nickname,Homepage or email,Comments here,Add comment