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. Another example of jQuery scrollTop() Next TopicjQuery attr()
|