2010
02.12

Today I was faced with the small problem of scrolling to the bottom of a page using jQuery. I noticed while trying to find a quick solution around the web that there was a distinct lack of examples, so I decided just to make my own code.

This will simply scroll the window focus to the very bottom of your page, which can be handy in some cases.

<script type="text/javascript">
$(document).ready(function(){
var offsettop = parseInt($("body").css("height"));
window.scrollTo(0,offsettop);
});
</script>

1 comment so far

Add Your Comment
  1. Great Blog I am Certified to your blog Because I have Searched and visited blog contents are Unique. if your blog were not post unique so I would not post my comment.