css scrollbar position top and bottom code example
Example: css scrollbar position to bottom
document.getElementsByClassName('className')[0].scrollTop = document.getElementsByClassName('className')[0].scrollHeight;
document.getElementsByClassName('className')[0].scrollTop = document.getElementsByClassName('className')[0].scrollHeight;