<body onmousemove=getXY()>
<a id=pr></a>
<script>
function getXY(){
x=window.event.screenX;
y=window.event.screenY;
pr.innerText="X="+x+",Y="+y;
}
</script>
</body>
<a id=pr></a>
<script>
function getXY(){
x=window.event.screenX;
y=window.event.screenY;
pr.innerText="X="+x+",Y="+y;
}
</script>
</body>
x=window.event.x;
y=window.event.y;
<a id=pr></a>
<script>
function getXY(){
x=window.event.x+window.screenLeft;
y=window.event.y+window.screenTop;
pr.innerText="X="+x+",Y="+y;
}
</script>
</body>