Home  >  Article  >  Web Front-end  >  Understanding some concepts in JavaScript:

Understanding some concepts in JavaScript:

高洛峰
高洛峰Original
2016-10-12 13:08:571136browse

clientX sets or gets the x-coordinate of the mouse pointer position relative to the client area of ​​the window, where the client area does not include the window's own controls and scroll bars.

clientY sets or gets the y coordinate of the mouse pointer position relative to the client area of ​​the window, where the client area does not include the window's own controls and scroll bars.

offsetX sets or gets the x coordinate of the mouse pointer position relative to the (this) object that triggered the event.

offsetY sets or gets the y coordinate of the mouse pointer position relative to the (this) object that triggered the event.

screenX Sets or gets the x coordinate of the mouse pointer position relative to the user's screen.

screenY sets or gets the y coordinate of the mouse pointer position relative to the user's screen.

x Sets or gets the x pixel coordinate of the mouse pointer position relative to the parent document.

y Sets or gets the y pixel coordinate of the mouse pointer position relative to the parent document.

As shown in the picture: The picture comes from the Internet

Understanding some concepts in JavaScript:

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn