July 1998
Intermediate to advanced
1456 pages
65h 5m
English
offsetX, offsetY — NN n/a IE 4 DOM n/a
Read-only
The left and top coordinates of the mouse pointer relative to the
containing element (exclusive of padding, borders, or margins) when
the event fired. You can determine the containing element via the
offsetParent property. See Section 9.2 at the beginning
of this chapter about offset measurement anomalies in Internet
Explorer 4.
if (event.offsetX <= 20 && event.offsetY <=40) {
...
}Integer pixel count.
None.
Read now
Unlock full access