+ 1

(Bug) ScrollTop giving 0 everyTime

i attached onscroll event to body using html "onscroll" attribute and logging the scrollTop property of body but getting 0 everytime https://code.sololearn.com/WtRDa5rUi0xx/?ref=app

7th Oct 2021, 1:45 AM
Abhay Bro
Abhay Bro - avatar
1 Antwort
0
Try scrollHeight
9th Oct 2021, 11:27 AM
Sunday Yemi Olanisimi 🇳🇬
Sunday Yemi Olanisimi 🇳🇬 - avatar