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

Can't go Back

Status
Not open for further replies.

DeepBlerg

Technical User
Jan 13, 2001
224
AU
Hi,

I have 2 versions of a page, (iewelcome and nswelcome) -- the user passes through a browser detection page which then redirects them to the relevant page depending on their browser.

My problem is once the user arrives at iewelcome the "Back" button on the browser brings them back to the browser detection page and thus they end up at the same page.

Is there a script where I could program the "Back" button on the browser to go back 2 pages? Or another way around this?

Thanks,
Tim
 
no you can't change the back button - the only solution i see is to use some javascript, and REPLACE in the history list the browser detection page with the ie or ns page
this is done like this
location.history.replace("iewelcome.html")
instead of
location.href="iewelcome.html"
 
I believe you can pass an arguement to the history.back function.

history.back(2); should work. ===
Supports Mozilla and Web Standards
Knows HTML/XHTML, CSS1, JavaScript, PHP, C++, DOM1
===
 
That won't help if the back button from menubar is clicked!
But true, it is a pity you can't redefine object functions - like you can event handlers, maybe you can? -BB "Alright whatever man, I'll hook up the hair, but I aint touchin the ring...Cause I'm still a pla--yer"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top