I\'m using jQuery to capture an event:
$(\'input\').focus(function(e){ console.log( e.pageX, e.pageY ); });
This doesn\'t seem to work.
If you're trying to get the position relative to the element, try something like this instead:
$("input").focus(function(e){ var relativeX = e.pageX - this.offsetLeft; var relativeY = e.pageY - this.offsetTop; });