티스토리 뷰

공부

[JS] scroll go to edge

seunggabi 승가비 2020. 5. 14. 01:57
window.scrollTo(0, document.body.scrollHeight);
window.scrollTo(0, 0);

https://stackoverflow.com/questions/11715646/scroll-automatically-to-the-bottom-of-the-page

 

Scroll Automatically to the Bottom of the Page

Consider I have a list of questions. When I click on the first question, it should automatically take me to the bottom of the page. For a matter of fact, I do know that this can be done using jQu...

stackoverflow.com

 

'공부' 카테고리의 다른 글

[Spark] submit conf by tuning  (0) 2020.05.14
[Chrome] active tab execute command  (0) 2020.05.14
[JS] scroll go to edge  (0) 2020.05.14
[HBase] Time to Live (TTL)  (0) 2020.05.14
[Hive] current_timestamp - INTERVAL '6' HOUR  (0) 2020.05.14
[Python] set locale, datetime  (0) 2020.05.14
댓글
댓글쓰기 폼