Documentation

Plugins/dimensions/scrollTop

From jQuery JavaScript Library

Jump to: navigation, search

« Back to Plugins/dimensions

scrollTop( )

Gets the scroll top offset of the first matched element.
This method works for both visible and hidden elements.

scrollTop( offset )

Sets the scroll top offset.
This method works for both visible and hidden elements.
Arguments:
offsetInteger
A positive number representing the desired scroll top offset.