Preferably without frameworks.
Preferably without frameworks.
You can capture this with an event listener:
document.querySelector('body').addEventListener('mousemove', function(event) {
var posX = event.clientX,
posY = event.clientY;
});