|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi,
I have a webpage (www.moochers.com) where a javascript puts the visitor in the proper frameset if they come to a lone frame. The problem is I would like to wipe out the redirect page in the history so that when they hit the back button they can get out and aren't trapped. Is there any way to make the 'back' button on the browser go back 2 pages instead of 1? It can't be a link, it has to be the back button. I appreciate any help. Thanks. |
|
#2
|
|||
|
|||
|
You cannot change what the browser back button does. About all you can do is put a button link on the page:
<a href="javascript:history.go(-2)">GO back</a> Spookster |
|
#3
|
|||
|
|||
|
Hi,
Thanks for your help, but I figured out how to do it finally. You're right, you can't change what the back button does, but you can overwrite the last page in the history with the current page. You just put location.replace('whatever_url_you_are_forwarding_to'); and the last url will be wiped out of memory so when the back button is hit it will 'effectively' go back 2 pages. Hope this helps someone. |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > History go back 2 pages? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|