screenY
Returns the vertical coordinate of the event within the screen as a whole..
Syntax
yCoord = event.screenY
Parameters
yCoord is the offset from the top of the screen in pixels.
Example
function checkClickMap(e) { if e.screenY < 50 doRedButton(); if 50 <= e.screenY < 100 doYellowButton(); if e.screenY >= 100 doRedButton(); }
Notes
When you trap events on the window, document, or other roomy elements, you can get the coordinates of that event (e.g., a click) and route it properly, as the "clickMap" example demonstrates.
Specification
screenY
Netscape Communications http://developer.netscape.com |