Nathan B Nathan B - 7 months ago 8
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.

RLS RLS
Answer

Try using the scrollBy function:

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

Source: http://www.w3schools.com/jsref/met_win_scrollby.asp