quick easy question

wxdqz

New Member
My minds' gone numb.

How do we use javascript to determine how far the top of a div layer is from the top of the browser window? I'll need it for NS6 and IE.

I tried using this for NS6:
window.pageYOffset;

and this for IE:
document.body.scrollTop;

But those aren't working correctly.

Havik
 
Back
Top