Good day dear readers, today I was set the task of the client to which it was necessary to the site when the page loads immediately loaded on a certain distance from the top of the browser window, as in the client's site was a very big hat and basic information is below.
If we had to do was scroll through the names on the same page of the site, we certainly would have done all this with the help of anchors, but in this case we need to download to a specified location was across the site, by the decision was made to use the easiest method using JS.
window.onload = function()
window.scrollTo( 0, 580 );
You put this code on all pages of your website for example in a basement or another location, depending on your SMS and set up in the above indents site where 580 is the top margin in pixels on your page that will load .Vot this simple method we have now our site will be loaded directly from the scroll 580 pixels from the top.