Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reload site without jump to top?

Status
Not open for further replies.

zoomby

Programmer
Joined
Aug 5, 2002
Messages
60
Location
DE
hi!

is it possible to reload a site ("javascript:location.reload()") so that the site doesn't jump to its top (when you have to scroll) ?

hope you can help
bye
chris
 
can you do a refresh instead of a reload??
Tony
reddot.gif WIDTH=500 HEIGHT=2 VSPACE=3

 
no, there's no refresh method in javascript i think.
So how can I do it?
 
Haven't tried this, just a thought. Try using post and get. Get the body.scrollTop and scrollLeft before reloading, put it in the URL, then put this in onload

window.scrollTo(LeftVar, TopVar)
 
thanks gph1, that works great!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top