I have a fixed textarea which is being updated every second. (id is 'log')
Now, I'm trying to get the scrollbar to act like msn (or cmd, for that matter)
When the page is updated, and the scrollbar was already down, let the scrollbar go to the bottom. That's easy: "log.scrollTop = log.scrollHeight" every update.
The big problem here, is that when the user scrolls up, in other words, isn't at the bottom, the scrollbar should not move. How would I do that?
I'm allowed to use jQuery and Jscrollpane if needed.