event.layerX : Event Object : Event JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Event » Event Object »

 

event.layerX







The layerX property controls the horizontal (x-coordinate) positioning within the layer.












<html>
    <head>
    <title>Using the layerX property for the event object</title>
    </head>
    <body>
    <script language="JavaScript">
    <!--

    function changeSize(){
         window.resizeTo(300,400);
    }

    function handle(evnt){
        alert("The new width (X value) after the resize is: " + evnt.layerX);
        return true;
    }

    window.onresize = handle;

    -->
    </script>
          Drag the browser border to trigger the resize event

    </body>
    </html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Event
» Event Object