event.layerY : Event Object : Event JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Event » Event Object »

 

event.layerY








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>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Event
» Event Object