-1

I'm talking about whether I move a mouse at all without clicking. Can a website detect that and capture it? Is there a way in the console or using a program?

Also, is it possible to capture mouse movements server side?

General Grievance
  • 4,555
  • 31
  • 31
  • 45
chow
  • 19
  • 1

1 Answers1

-1

You can detect and capture mouse move on clientSide and there is possibility to send that coordinates of mouse from client side to server side ie. every 10 ms.

$( "div" ).mousemove(function( event ) {
  var pageCoords = "( " + event.pageX + ", " + event.pageY + " )";
  var clientCoords = "( " + event.clientX + ", " + event.clientY + " )";
  $( "span:first" ).text( "( event.pageX, event.pageY ) : " + pageCoords );
  $( "span:last" ).text( "( event.clientX, event.clientY ) : " + clientCoords );
});

Working example Example on JSFiddler

krissus
  • 39
  • 2
  • Hey, I'm not the one trying to detect mouse movements. I'm trying to see if a website is detecting me. – chow Jan 30 '17 at 21:28