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

Using history.go and refresh

Status
Not open for further replies.

shiggyshag

Programmer
Dec 14, 2001
227
GB
HI

I have an image with an onClick="History.Go(-2)" which is goes back two pages. But what I then want to do is have that page refresh so the person gets the latest data. THe page is in a frame.

Cheers
 
onClick="history.go(-2); parent.frameName.document.location.reload()"

Relpace [tt]frameName[/tt] with an actual name of your frame.
Both [tt]history[/tt] and [tt]go[/tt] should be lowercase! Javascript is case-sensitive, don't forget about it.

good luck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top