Skip to content

jQuery Scroll To Top

JavaScript · September 12, 2010

Sharing is Caring

jQuery is so powerful and very flexible and usually makes so many complex takes so simple.

Anything with a scrollbar and can be selected can be programatically scrolled to to the top.

$(div).scrollTop();

Scrolling to top of browser window is as simple as:

$(window).scrollTop(0);

Sharing is Caring
scrollToTop