Mouse event object

1. X and Y coordinates of the mouse in the visible region of the

 e.clientX return mouse coordinates relative to X visible region of the browser window

 Back e.clientY mouse Y coordinates relative to the visible region of the browser window

2. X and Y coordinates of the mouse in the pages of the document

 e.pageX return the mouse coordinates relative to the page of the document X IE9 + support

 e.pageY return the mouse coordinates relative to the page document Y IE9 + support

3. mouse computer screen X and Y coordinates

 e.screenX return the mouse relative to the X coordinate of the computer screen

 e.screenY Returns the mouse relative to the Y coordinate of the computer screen

Guess you like

Origin www.cnblogs.com/qtbb/p/11688314.html