Re: offsetTop
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: offsetTop

From: alu <none@none.com>
Date: Fri Jul 15 2005 - 16:14:36 CEST

"Francisco" <francisco.spaeth@gmail.com> wrote

> Hi all,
>
> I have a div (divI) inner another div (divM), when i request the
> offsetTop of divI (inner) it returns me the top of divI in divM and not
> the top of divI in the document? Have anyway to get this information?
>
> Gratefull
> Francisco
>

If you want to continue using offsetTop,

document.getElementById("divM").offsetTop+document.getElementById("divI").of
fsetTop

you'll still get different results in different browsers.
-alu
Received on Tue Oct 18 02:56:28 2005