<!DOCTYPE html>
<html>
<head>
<title>jQuery mousemove() method</title>
<script src="jquery-latest.min.js"></script>
<script>
$(document).ready(function(){
$("button").mousemove(function(e){
$("button").after("<p>Mouse position: X: " + e.pageX + ", Y: " + e.pageY + "</p>");
});
$("button").click(function(){
$(this).mousemove();
});
});
</script>
</head>
<body>
<button>Trigger mouseMove</button>
<p></p>
</body>
</html>