July 1998
Intermediate to advanced
1456 pages
65h 5m
English
offsetLeft, offsetTop — NN n/a IE 4 DOM n/a
Read-only
These properties should represent the left and top coordinates of the
element’s content relative to the containing element, exclusive
of padding, borders, or margins. You can determine the containing
element via the offsetParent property.
Unfortunately, Internet Explorer 4 implements these two properties
very unevenly across operating systems. See Section 9.2 earlier in this chapter.
if (document.all.elementID.offsetLeft <= 20 && document.all.elementID.offsetTop <=40) { ... }
Integer pixel count.
None.
Read now
Unlock full access