79
rated 0 times
[
86]
[
7]
/ answers: 1 / hits: 72249
/ 15 Years ago, fri, march 5, 2010, 12:00:00
How can I find out what percentage of the vertical scrollbar a user has moved through at any given point?
It's easy enough to trap the onscroll
event to fire when the user scrolls down the page, but how do I find out within that event how far they have scrolled? In this case, the percentage particularly is what's important. I'm not particularly worried about a solution for IE6.
Do any of the major frameworks (Dojo, jQuery, Prototype, Mootools) expose this in a simple cross-browser compatible way?
More From » cross-browser