Image you are working on a small web application where you use a JQuery UI dialog
to inform the user about the current process.
$('#progress').append("" + stderr + "
var height = $('#progress').scrollHeight; $('#progress').scrollTop(height);
It is simple as that.