set automatically scroll down for div javascript 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;