August 1999
Intermediate to advanced
1488 pages
72h 53m
English
event.screenY
The screenY property of the Event object controls the vertical (y-coordinate) positioning within the computer screen in which the event occurred.
Listing 7.212 shows an example of how to determine the y-coordinate of the cursor positioning relative to the computer screen when the click event occurs. The code captures the CLICK event. When captured, control is passed to the handle() function, which determines the y-coordinate position using the screenY property.
<html> <head> <title>Example of the event.screenY property</title> </head> <body> <script language = "JavaScript"> ... |
Read now
Unlock full access