Js: how to see if the webpage isn't at the top | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Js: how to see if the webpage isn't at the top

well, i wanna make a "scroll to the top" button that appears at the bottom right of the page when the page isn't at the top.... and likely can you tell me how to see if a specific section, let's say div#about 's Y pos of 0, reaches the top of the screen

29th May 2022, 9:36 AM
Tomoe
Tomoe - avatar
3 Answers
0
https://code.sololearn.com/W8o3IijOKFac/?ref=app https://code.sololearn.com/Ws1HO2U0A227/?ref=app
29th May 2022, 2:14 PM
Calviղ
Calviղ - avatar