Skip to content

Instantly share code, notes, and snippets.



Forked from padolsey/gist:360015
Created May 4, 2012
What would you like to do?
var x,y;
document.onmousemove = function(e){
e = e || window.event;
x = e.clientX;
y = e.clientY;
function elementAtMousePosition() {
return document.elementFromPoint(x,y);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment