why div scroll is going bottom automatically code example
Example: how to make auto scroll to the end in css
let objDiv = document.getElementById("divExample");
objDiv.scrollTop = objDiv.scrollHeight;
let objDiv = document.getElementById("divExample");
objDiv.scrollTop = objDiv.scrollHeight;