var div = document.getElementById('chatmessage'); div.scrollTop = div.scrollHeight;
var div = document.getElementById('chatmessage');
div.scrollTop = div.scrollHeight;