jQuery has a function called scrollTop which can be used to find the number of pixels hidden above the current page view.
I\'m not really sure why, but there is no s
If you want to Scroll Down (Opposite of “scrollTop”), try to use the vertical position on the argument. Like this:
$(document).ready(function(){
$("button").click(function(){
//position on pixeles
$("body").scrollTop(1300);
});
});
The top of the body, will be: $("body").scrollTop(0);
You could try scrollTo plugin and do something like:
$.scrollTo( document.height )