I have a scroll-bar in a div element and initially it\'s position is top. Whenever i add some text to the div element then the scroll-bar does not move. Is there any way, th
var messageBody = document.querySelector('#messageBody'); messageBody.scrollTop = messageBody.scrollHeight - messageBody.clientHeight;