jquery scroll window to top bottom and absolute positions

jQuery Smooth Scrolling

jQuery Scroll Bottom to Top
$("#ancScrolltoTop").click(function () {
    $('html,body').animate({
        scrollTop: 0
    }, "slow");
});
jQuery Scroll Top to Bottom
$("#ancScrollToBottom").click(function () {
    $("html, body").animate({
        scrollTop: $(document).height()
    }, "slow");
});
jQuery Scroll to Hash Tag
$("#ancScrollToControl").click(function () {
    $('html,body').animate({
        scrollTop: $("#dvMain").offset().top
    }, "slow");
});
jquery scroll window to top bottom and absolute positions jquery scroll window to top bottom and absolute positions Reviewed by Bhaumik Patel on 8:33 PM Rating: 5