//获取鼠标坐标
        $(function() {
            $("#Button2").click(function(event) {
              
            alert(event.pageX);
            alert(event.pageY);
            });
        });

 

------------HTML代码

    <input id="Button2" type="button" value="button" />