Answers for "how to know i am at the bottom of the scroll bar"

CSS
1

How to keep a scrollbar always bottom?

var chatHistory = document.getElementById("messageBody");
chatHistory.scrollTop = chatHistory.scrollHeight;
Posted by: Guest on February-06-2022
4

css scrollbar position to bottom

document.getElementsByClassName('className')[0].scrollTop = document.getElementsByClassName('className')[0].scrollHeight;
Posted by: Guest on December-17-2020

Code answers related to "how to know i am at the bottom of the scroll bar"

Browse Popular Code Answers by Language