Home > Web Front-end > JS Tutorial > body text

Understanding some concepts in JavaScript:

高洛峰
Release: 2016-10-12 13:08:57
Original
1200 people have browsed it

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:

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template