I was hoping that when the page was loaded, it would automatically go to the end of it. I do not want to use jquery because the project is relatively simple. It is not necessary. I used the following code:
<body onload="toBottom();">
</body>
function toBottom(){ var elem = document.querySelector("body"); elem.scrollTop = elem.scrollHeight; }
It works when loading page, okay! Only when I give refresh not. Only if I close the page, and sign in again. How do I resolve this?