91-9990449935 0120-4256464 |
jQuery scrollTop()The jQuery scrollTop method is used to set or return the vertical scrollbar position for the selected element. When the scrollbar is on the top, it specifies the position 0.
Syntax: To return vertical scrollbar position: Parameters of jQuery scrollTop() method
Example of jQuery scrollTop() methodLet's take an example to demonstrate the jQuery scrollTop() method. Test it NowAnother example of jQuery scrollTop()Test it Now
Next TopicjQuery attr()
|