document.getElementsByClassName('className')[0].scrollTop = document.getElementsByClassName('className')[0].scrollHeight;