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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

reload after OnClick

Status
Not open for further replies.

nerram

Programmer
Apr 23, 2003
56
IE
i want to go back using the history two pages and reload that page when i get there so that its jsp content will be refreshed. Can this be done in javascript?
 
go back 2 pages, yes: history.go(-2);

refresh when you get there is trickier, since you'll have to devise some method of calling location.reload() only once or else end up in an infinite reload loop...

an easier way may be to set the expiration of the page to immediate - in asp this is done:

response.expires = -1



=========================================================
while (!succeed) try();
-jeff
 
I use window.location.replace("pagename.asp")
to come back to the same page with a reload
if you dont want a reload use
window.location = "pagename.asp"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top