The layerY property controls the vertical (y-coordinate) positioning within the layer.
When a window or frame is resized, the new value for the vertical coordinate is stored in the layerY property.
<html> <head> <title>Using the layerY property for the event object</title> </head> <body> <script language="JavaScript"> <!-- function handle(evnt){ alert("The new height (Y value) of the window object after the resize is: " + evnt.layerY); return true; }
window.onresize = handle;
-->
</script> Resize the browser to see the result. </body> </html>