window.addEventListener('mousemove', (event) => { const mouseX = event.pageX; const mouseY = event.pageY; // Do something with these coordinates });