hello it is me again sorry for not putting enough info in my last one

i am making a text adventure game and i want to have the output div auto scroll to the bottom when new content is added

how would i go about doing this ?