Home  »  Code Snippets  »  Java Script  »

How to scroll to the bottom of the page using javascript?

 Posted By : Manoranjan SahooPosted Date : 09/12/2010 02:50:07 PM Category : Java Script Points : 3

Hello,

Some times we need to scroll down the page to the bottom in client side. just use the below javascript to do so.

 <script language="javascript">
function scrollToBottom()
{
    window.scrollTo(0,document.body.scrollHeight);
}
</script>

 

Thank You.

Responses
No responses found for this thread. Be the first to respond this thread.
Post Reply
Login to post Response.