July 1998
Intermediate to advanced
1456 pages
65h 5m
English
offsetParent — NN n/a IE 4 DOM n/a
Read-only
Returns a reference to the object that is the current element’s
containing box. For most elements, this is the
BODY object. But elements that are wrapped in
DIV elements or are cells of a table have other
parents. You can use the returned value in a reference to obtain
property information about the containing element, as shown in the
following example.
var containerLeft = document.all.elementID.offsetParent.offsetLeftObject reference.
BODY object.
Read now
Unlock full access