Hey there! Sign in to join this conversationNew here? Join for free
x Turn on thread page Beta
    • Thread Starter

    What i'm trying to create is a webpage which upon opening auto scrolls down to the bottom of the page and then jumps back to the top. The page will also refresh every 10 seconds.

    I've got it to refresh every ten seconds and i've used javascript to scroll the page down to the bottom. What i'm stuck on is how to get it back to the top of the page. I thought the auto refresh would take care of that but it doesn't.

    Below is the relevant sections of code.

    <meta http-equiv="refresh" content="10">
    function pageScroll() {
    		scrolldelay = setTimeout('pageScroll()',300); }
    <body onLoad="pageScroll()">
Have you ever experienced racism/sexism at uni?
Useful resources

The Student Room, Get Revising and Marked by Teachers are trading names of The Student Room Group Ltd.

Register Number: 04666380 (England and Wales), VAT No. 806 8067 22 Registered Office: International House, Queens Road, Brighton, BN1 3XE

Write a reply...
Reputation gems: You get these gems as you gain rep from other members for making good contributions and giving helpful advice.