onsuccess = function(){ var fromBottom = container.scrollHeight - container.scrollTop; //добавление конткнта container.scrollTop = container.scrollHeight - fromBottom; }