jQuery mouse position Test code: $('body').mousemove(function(e){ $('.log').html("Mouse position: x=" + e.pageX + " | y=" + e.pageY); });