event.y: Sets or retrieves the y-coordinate, in pixels, of the mouse pointer's position relative to the parent element. event.screenY: Sets or retrieves the y-coordinate of the mouse pointer's position relative to the user's screen. event.offsetY: Sets or retrieves the y-coordinate of the mouse pointer's position relative to the object firing the event.  event.clientY: Sets or retrieves the y-coordinate of the mouse pointer's position relative to the client area of the window, excluding window decorations and scroll bars. 
看看说明,哪个是你需要的。