TOC PREV NEXT INDEX

domref



offsetParent


offsetParent returns a reference to the object which is the closest (nearest in the containment hierarchy) positioned containing element. If the element is non-positioned, the root element (html in standards compliant mode; body in quirks rendering mode) is the offsetParent.

Syntax

parentObj = element.offsetParent
 

Parameters

parentObj is an object reference to the element in which the current element is offset.

Example

example here
 

Notes

extra information

Specification

DOM Level 0. Not part of specification.


Netscape Communications
http://developer.netscape.com
TOC PREV NEXT INDEX