Collect useful tips for later use (because I did spend much time to search/try out several times before got the final one
- Một div có chiều cao auto, khi append thêm content vào mà muốn auto scroll to content vừa thêm ở cuối, thì đoạn code sau hữu ích:
const objDiv = document.getElementById('scrollPanel')
objDiv.scrollTop = objDiv.scrollHeight
TOBE UPDATED...