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

Back button in IE

Status
Not open for further replies.

florida41

Technical User
May 13, 2004
95
US
Anyway I can make my Browser go back to a previous page just like Netscape 7 does.

My Cold Fusion form processes data and then if I hit the back button in IE6 it says "Page Expired..." and doesnt go back to the form page. I tried many variations of the history.back() functions:
history.back()
history.go(-1)
history.back(-1)


It still doesnt take me back to the form page. The Netscape 7 Browser Button works all the time with the Action/Result page where I submit a form and it takes me to the action page then if I hit the Netscape 7 Browser Back button it takes me back to the form.

How can I do the same with IE6???
 
perhaps try
Code:
location.href = document.referrer;




=========================================================
-jeff
try { succeed(); } catch(E) { tryAgain(); } finally { rtfm(); }
 
i dont think even that will jeff, the "Page-expired" thing is IE controlled, not code controlled...

Known is handfull, Unknown is worldfull
 
Thanks I want to try the location.href = document.referrer;

Please advise how I would implement this?
I tried this and it didnt work:
<a href="location.href = document.referrer;">Back</a>
 
<a href="javascript:location.href = document.referrer;">Back</a>

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top