July 1998
Intermediate to advanced
1456 pages
65h 5m
English
clientX, clientY — NN n/a IE 4 DOM n/a
Read-only
The horizontal (x) and vertical (y) coordinate of the mouse at the moment the current event fired. These coordinates are relative to the viewable document area of the browser window or frame.
if ((event.clientX >= 10 || event.clientX <= 20) &&
(event.clientY >= 50 || event.clientY <= 100)) {
process code for click in hot zone bounded by 10,50 and 20,100
}Integer of pixel values.
None.
Read now
Unlock full access