Nathan B Nathan B - 1 year ago 89
Javascript Question

Making a webpage load part way down the page

So I've done some Googling but it hasn't helped. What I want is for the visible portion of the page to load part way down the actual page, so that when a user goes to the site they can immediately scroll up to reveal more of the page.

I hope that's clear.

Answer Source

Try using the scrollBy function:

function pageScroll() {
    window.scrollBy(0, 200);
window.onload = pageScroll;


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download