<html>
<title>Cursor</title>
<head>
<script language="JavaScript">
function MouseMove(){
  xpos=event.clientX;       
  ypos=event.clientY;
  window.status = "("+xpos+"; "+ypos+")";
}
</script>
</head>
<body onMouseMove="MouseMove()">

</body>
</html>
Published in: JavaScript
Download

Related snippets