console
function findScreenCoords(mouseEvent)
{
var xpos;
var ypos;
if (mouseEvent)
{
//FireFox
xpos = mouseEvent.screenX;
ypos = mouseEvent.screenY;
}
else
{
//IE
xpos = window.event.screenX;
ypos = window.event.screenY;
}
document.getElementById("screenCoords").innerHTML = xpos + ", " + ypos;
}
document.getElementById("screenBox").onmousemove = findScreenCoords;
<div id="screenBox" style="margin:30px; text-align:center; width:400px; height:500px; background-color:#ccc;">
<div id="screenCoords" style="font-size:36px;"></div>
</div>