event.screenX : Event Object : Event JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Event » Event Object »

 

event.screenX







The screenX property controls the horizontal (x-coordinate) positioning within the computer screen.












<html>
    <head>
    <title>Example of the event.screenX property</title>
    </head>
    <body>
    <script language = "JavaScript">
    <!--
    function handle(evnt){
        alert("The X coordinate relative to the computer screen of where the click occurred is: " + evnt.screenX);
        return true;
    }
    window.onclick = handle;
    -->
    </script>
    Click in the web browser.
    </body>
    </html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Event
» Event Object