Created
June 6, 2015 09:10
-
-
Save serkanberksoy/8e96efd8254e43545e64 to your computer and use it in GitHub Desktop.
Get mouse position
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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