Auto scroll page down based on window height

Jquery

Posted on 09 Apr 15 by Vickey
  515



In the below code first we get the window height and then accordingly scroll page

$(document).ready(function(){ 

if(jQuery(window).width() < 300) window.scroll(0,1000); else if(jQuery(window).width() < 600) window.scroll(0,2000);

});


If this post help you reduce time to develop, you can help me to maintain this website :)
www.000webhost.com