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

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -