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


Try using the scrollBy function:

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