event.layerY

JavaScript 1.2+ Nav4+ Syntax

							event.layerY

Description

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.

Example

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.

Listing 7.206 Example of How to Change the layerY Property
 <html> <head> <title>Using the layerY property for the event object</title> </head> <body> <script language="JavaScript"> ...

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.