How do I get the position of an HTML element relative to the page? I'd like to scroll to particular link, but it's nested inside other elements, and the offsetTop is 0. How do I get it's position relative to the whole HTML doc.
Do I need to do recursion?