Mega Code Archive

 
Categories / JavaScript Tutorial / Event
 

Event screenY

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