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