event.pageX : Event Object : Event JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Event » Event Object »

 

event.pageX







The pageX property controls the horizontal (x-coordinate) positioning within a Web page.












<html>
    <head>
    <title>Example of the event.pageX property</title>
    </head>
    <body>
    <script language = "JavaScript">
    <!--
    window.captureEvents(Event.CLICK);

    function handle(evnt){
      alert("The X coordinate of where the click event occurred is: " + evnt.pageX);
      return true;
    }
    window.onclick = handle;
    -->
    </script>
    <form>
    Click in the web browser.
    </form>
    </body>
    </html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Event
» Event Object