JavaScript/Working with the mouse
跳到导航
跳到搜索
JavaScript Console测试[编辑]
测试x,y
window.onmouseover = function(){document.title = [event.x,event.y];};
测试offsetX,offsetY
window.onmouseover = function(){document.title = [event.offsetX,event.offsetY];};
测试clientX,clientY
window.onmouseover = function(){document.title = [event.clientX,event.clientY];};
测试pageX,pageY
window.onmouseover = function(){document.title = [event.pageX,event.pageY];};