Skip to content

Instantly share code, notes, and snippets.

@lanqy lanqy/gist:2597567 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
You can’t perform that action at this time.