JavaScript gets mouse coordinates
Mouse coordinates include x coordinates, y coordinates, coordinates relative to the client, coordinates relative to the screen, etc.
In JavaScript, mouse coordinates exist as attributes of the event object.
The properties related to mouse coordinates in the event object are as follows.
Get the coordinate information of the mouse.
获取鼠标的坐标信息 点击这里