Link to home
Start Free TrialLog in
Avatar of rnicholus
rnicholus

asked on

Refresh tag always bring user to the top of the page.

I have a page where I put this tag below to make the page automatically refreshed every 60 seconds:
<meta http-equiv="refresh" content="60">

My page is very long and every refresh will bring user back to the top of the page.
Is there anyway to prevent this from happening? I want to be able to make the page refresh without having to bring user to the top of the page.

Thanks in advance for the help.
Avatar of geordie007
geordie007


i wouldn't think that would be possible. with a meta refresh, you're making another request to the server for that file, so its as though its the first time you've viewed the page.

do you need to reload the whole content again, or is there just a small piece of info that may change, a news ticker for example? if that is the case, you could always embed that piece of info an an iframe, and have that refreshing, rather than your whole page. is this way, you're not making another request for your main page, so it won't return to the top of the page.
You could use an anchor to do it, but you would still be stuck refreshing to a static point on the page, rather than a dynamic one, whereever the user left off...

<meta http-equiv="refresh" content="60;URL=mypage.html#middle">
ASKER CERTIFIED SOLUTION
Avatar of GrandSchtroumpf
GrandSchtroumpf

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rnicholus

ASKER

I used mozilla 1.5.04 and internet explorer 1.7.