Thanks, I'll try that.
What I'm doing is dynamically adding contents to a div (as in a list) and I always want the last added items to be shown. I read somewhere that it might be necessary to wait a bit of time for the new contents to be added before the scrolling, so I tried setTimeout but...
How do I scroll the contents of a div or other container down to the bottom?
var div = document.getElementById( "output" );
div.doScroll( 'scrollbarDown' );
That scrolls down one item. I can also scroll down one page, but I seem to get out of sync if the div is filling up with content quickly...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.