javascript - How to start page at center of center or at specific height after load -
i want start page @ center horizontally , vertically when had loaded (not @ top), suggestions? or @ specific height if possible. thank you!
you can this:
$(document).ready(function() { $(window).scrolltop($(window).height()/2); $(window).scrollleft($(window).width()/2); });
you can change position suit needs.
also can use $(window).scrollto($(window).width()/2, $(window).height()/2);
Comments
Post a Comment