Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

Javascript track mouse pointer

var pointerX = -1;
var pointerY = -1;
document.onmousemove = function(event) {
	pointerX = event.pageX;
	pointerY = event.pageY;
}
setInterval(pointerCheck, 1000);
function pointerCheck() {
	console.log('Cursor at: '+pointerX+', '+pointerY);
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: how to make a div scrollable 
Javascript :: count items in div jquery 
Javascript :: javascript reduce function to get sum of object value 
Javascript :: heroicons reactjs 
Javascript :: on window resize react 
Javascript :: iframe in react native 
Javascript :: Unknown command: "create-react-app" 
Javascript :: angular input press enter 
Javascript :: include node_modules from search vscode 
Javascript :: a-z array javascript 
Javascript :: document.ready 
Javascript :: update node .js 
Javascript :: angular ng serve with custom port 
Javascript :: google sheets get sheet by name 
Javascript :: javascript change url hash 
Javascript :: how to remove a class from element with javascript 
Javascript :: javascript disable enter key 
Javascript :: reactnavigation 5 hide header 
Javascript :: console log add new line 
Javascript :: remove last 3 characters from string javascript 
Javascript :: country code regex 
Javascript :: react font awesome delete icon 
Javascript :: react style justify content space between 
Javascript :: javascript async await for x seconds 
Javascript :: choose jsp 
Javascript :: onload javascript function call 
Javascript :: javascript Validating the Phone Number 
Javascript :: js shuffle array 
Javascript :: jquery how to know if element is visible 
Javascript :: react cloud foundry nginx 404 
ADD CONTENT
Topic
Content
Source link
Name
7+2 =