Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Event listener mousemove

var mouse_monitor = function(e) {
  var x = e.pageX;
  var y = e.pageY;
  console.log(x, y);
}

window.onload = function() {
  this.addEventListener('mousemove', mouse_monitor);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Event #listener #mousemove
ADD COMMENT
Topic
Name
4+3 =