The jQuery scrollTop method is used to set or return the selected element's vertical scrollbar position. The position 0 is specified when the scrollbar is at the top.
The scrollTop value of an element represents the distance between the element's top and its uppermost visible content. The scrollTop value of an element is 0 when its content does not cause a vertical scrollbar.
The vertical scrollbar position for the chosen components is set or returned by the scrollTop() method. The position is 0 when the scrollbar is at the top. When used to revert to the previous position: The vertical position of the scrollbar for the FIRST matched element is returned by this method.
ScrollTop() is very helpful in determining whether the user has scrolled down or not. It can also be used to determine how much content is left on a given webpage, which can help you optimize your website layout and design.
The scrollTop() method is used to find the top of the page in jQuery. It returns a number that corresponds to how many pixels have scrolled up, or down, since the last time it was called.
Learner's Ratings
4.9
Overall Rating
91%
9%
0%
0%
0%
Reviews
A
atul Machindra raut
5
The way he is teaching is awesome. All the topics explain well. Thank you Joel sir!
A
Akshay P
4
it was good but pls also provide captions of the vedio
D
Dravinanshu Mishra
5
Excellent course.
C
Chinna
5
Explanation is good......
A
Are you Mango
5
you can make more responsive website after leraning this . It is very easy language
K
Kishor balpande
5
The way he is teaching is awesome. All the topics explain well. Thank you Joel sir!
J
Jai Kumar
5
Its is One Of the My Best Learning Course Evevr Because this is First Website Or Channel They Are free And Easy to Learn thankyou So much For this Course.
Share a personalized message with your friends.