I have a div of fixed sizes in which some JavaScript functions will place text over time. When the amount of text exceeds the height of the window, a scroll bar appears due to overflow: scroll.
The new problem is that the view in the div remains in the same place where more content appears. I want to say that it remains scrolled wherever it is, since more content is shown below, hidden unless you manually scroll down. I want it to automatically scroll to the bottom when new content appears, so that the user naturally sees what has appeared recently, and not the oldest.
Ideas?
source
share