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.
To return vertical scrollbar position:
Parameters of jQuery scrollTop() method
Example of jQuery scrollTop() method
Let's take an example to demonstrate the jQuery scrollTop() method.Test it Now
Another example of jQuery scrollTop()Test it Now
JavaTpoint offers too many high quality services. Mail us on [email protected], to get more information about given services.
JavaTpoint offers college campus training on Core Java, Advance Java, .Net, Android, Hadoop, PHP, Web Technology and Python. Please mail your requirement at [email protected]
Duration: 1 week to 2 week