JQuery scroll page top and bottom

This post is explaining how to scroll down to bottom or scroll up to top of the page or iframe using jquery.This is happening slowly animate to bottom and you can set time to scroll it.

html code like this.

Go to Page Bottom

JQuery script as follows.

    $(function () {
 	 $('html, body').animate({scrollTop: $(document).height()}, 1000);
 	 return false;

You can set time as 2000, 5000, “slow”, “speed” .If you set time 2000, this must be mill-seconds.
If you want to scroll up the page to the top,use this code.Keep your html link at the bottom of the page.Unless if exist of the top how to scroll to again top.