Mouse Co-ordinates


Wondering what the x and y co-ordinates of a point on your browser could be? Check the status bar to find out.



 <script language="javascript">
<!--

var where = ""; // which link
var isNav = (navigator.appName == "Netscape") ?
true:false;
function checkwhere(e) {

if(isNav) {evt = e;}
else {evt = event;}
xCoord = window.evt.x;
yCoord = window.evt.y;
self.status = "x : "+ xCoord + "y : " + yCoord;
}

document.onmousemove = checkwhere;
if(isNav) {document.captureEvents(Event.MOUSEMOVE);}
//-->
</script>
 





Added on May 31, 2007 Comment
}