dom scrolled to bottom code example
Example 1: js scroll to bottom
window.scrollTo(0,document.body.scrollHeight);
Example 2: js scroll to bottom of element
var objDiv = document.getElementById("your_div");
objDiv.scrollTop = objDiv.scrollHeight;