Published
- 1 min read
get the mouse position javascript
The solution for this is noted below
get the mouse position javascript
Solution
document.addEventListener('mousemove', (e) => {
console.log(`Mouse X: ${e.clientX}, Mouse Y: ${e.clientY}`)
})
Try other methods by searching on the site. That is if this doesn’t work