Scroll automatically to the bottom of a div
var objDiv = document.getElementById("divExample"); objDiv.scrollTop = objDiv.scrollHeight;
TextSnippets > gregf > javascript
486 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)
Greg
var objDiv = document.getElementById("divExample"); objDiv.scrollTop = objDiv.scrollHeight;