Skip to content

Instantly share code, notes, and snippets.

@serkanberksoy
Created June 6, 2015 09:10
Show Gist options
  • Save serkanberksoy/8e96efd8254e43545e64 to your computer and use it in GitHub Desktop.
Save serkanberksoy/8e96efd8254e43545e64 to your computer and use it in GitHub Desktop.
Get mouse position
var posX, posY;
$(document).mousemove(function(e) {
posX = e.clientX;
posY = e.clientY;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment