Coordinates of the cursor relative to the screen : Cursor : Development JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Development » Cursor »

 

Coordinates of the cursor relative to the screen



<html>
<head>

<script type="text/javascript">
function coordinates(event){
    alert("X=" + event.screenX + " Y=" + event.screenY)
}

</script>
</head>
<body onmousedown="coordinates(event)">

<p>Click in the document. </p>

</body>
</html>



           
       



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Development
» Cursor