Coordinates of the cursor : Cursor : Development JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Development » Cursor »

 

Coordinates of the cursor




<html>
<head>
<script type="text/javascript">
function show_coords(event){
    alert("X coords: " + event.clientX + ", Y coords: " + event.clientY)
}
</script>
</head>

<body onmousedown="show_coords(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