Auto scrolling the page to the desired location site
Web Studio - site development of any direction.
Creation, development, manufacturing sites | WEB-STYDIA.COM

5/55 ratings

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.

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.

You may also like

No Comment

You can post first response comment.

Leave A Comment

Please enter your name. Please enter an valid email address. Please enter a message.