Edit This Code:
See Result »
Click the button to get offsetTop for the test div.
Try it
offsetTop is:
Result: