I have a div that contains small posts, it grows automatically. When size is too big then the scrollbar apepars with CSS overflow property. What I want is that when more data is added then the div is automaticall scrolled down to it BUT when user decides to scroll up the the focusing is ignored. So the bottom line is that focus should only be triggered when the box is scoller completly down (scrollbar is at the bottom) and not in any other occasions. How can I do this, I bet it's really simple for someone who uses jquery or js on a daily basis.