August 1999
Intermediate to advanced
1488 pages
72h 53m
English
event.pageY
The pageY property of the Event object controls the vertical (y-coordinate) positioning within the Web page in which the event occurred.
Listing 7.210 shows an example of how to determine the y-coordinate cursor positioning by using the pageY event property. The JavaScript code listens for a CLICK event to occur. When this happens, it calls the handle() function, which is defined to handle any captured click events. The handle() function simply pops up an alert box indicating the y-coordinate value of where the click occurred.
<html> <head> <title>Example of the event.pageY property</title> </head> <body> ... |
Read now
Unlock full access