HTMLElement.offsetParent read-only property returns a
reference to the element which is the closest (nearest in the containment hierarchy)
positioned ancestor element.
A positioned ancestor is either:
- an element with a non-static position, or
tablein case the element itself is static positioned.
If there is no positioned ancestor element, the
body is returned.
null in the following
The element or its parent element has the
displayproperty set to
The element has the
positionproperty set to
- The element is
An object reference to the element in which the current element is offset.
|Unknown specification |
BCD tables only load in the browser