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 Mike Lewis 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
Aug 5, 2002
60
0
0
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)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top