document.addEventListener("mousemove", mouseMoving, false); function mouseMoving(e){ console.log(e.screenX, e.screenY); } document.getElementById