August 1999
Intermediate to advanced
1488 pages
72h 53m
English
event.layerY
The layerY property of the Event object controls the vertical (y-coordinate) positioning within the layer in which the event occurred. When a window or frame is resized, the new value for the vertical coordinate is stored in the layerY property.
Listing 7.206 shows an example of how the layerY property is used. When a RESIZE event occurs, it invokes the event handler that displays an alert box indicating the new y value. The y value is obtained from the layerY property of the event object.
<html> <head> <title>Using the layerY property for the event object</title> </head> <body> <script language="JavaScript"> ... |
Read now
Unlock full access