Posted By: Anonymous
You can use
element.scrollLeft to get the vertical and horizontal offset, respectively, that has been scrolled.
element can be
document.body if you care about the whole page. You can compare it to
element may be the body) if you need percentages.