A
A
artekha2016-12-29 04:23:05
css
artekha, 2016-12-29 04:23:05

How to scroll the contents of an element to the end automatically?

In VK, in a dialogue with a person, the content of the dialogue is always "scrolled" so that I would see the last message, how to do this? (Making a chat)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene Volf, 2016-12-29
@Wolfnsex

For example like this . After each "new message" or "page load" event, scroll the element to the height of its content, or a height greater than the height of its content beforehand (ala 999999).
Here 's something about element sizes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question