HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 3rd, 1999, 11:46 AM
Kingsky
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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.

Reply With Quote
  #2  
Old December 3rd, 1999, 10:59 PM
Spookster
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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

Reply With Quote
  #3  
Old December 3rd, 1999, 11:33 PM
Kingsky
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > History go back 2 pages?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT