Quedo asi...
Código:
function doRefresh() {
var scc = document.getElementById('divchat');
new ajax ('chat.php', {
postBody: 'reqtype=refresh&file=' + archivochat,
update: $('chats')
});
scc.scrollTop = scc.scrollHeight + scc.offsetHeight;
}
Simpre que hace el refresh pone abajo de todo al scroll.. ahora, yo quiero que cuando este abajo de todo el scroll baje, pero cuando ester al medio no...
Saludoas