RE: Re: Summary: Are Redirects Annoying?

Subject: RE: Re: Summary: Are Redirects Annoying?
From: "John Locke" <mail -at- freelock -dot- com>
To: "Christensen, Kent" <lkchris -at- sandia -dot- gov>, "TECHWR-L" <techwr-l -at- lists -dot- raycomm -dot- com>
Date: Fri, 14 Jul 2000 11:57:50 -0700

Kent Christiansen wants to hear about how web designers can create redirect
pages that do not stay in the browser history, putting the user in an
endless loop of redirects if they click the back button.

You can for browsers that support JavaScript.

t for a script that redirects users to different pages based upon the
browser they're using. The examples on this page use location.href to move
the user to the new page. This method does keep the current page active in
the history, so the user will get back here in the loop you're trying to

However, if you use location.replace("";), it replaces the
current page in the history, and the user won't get back to the redirect

Here's a description of this method, courtesy the HomeSite 4.5 online help:

This is much like the reload method, except that it loads another document
and replaces the history object entry for the previous URL with the new URL
loaded. Essentially, this prevents the user from returning to the previous
URL, by using the browsers back button. For example, suppose you are at the
URL given above for the examples and the following code gets executed :

The browser would navigate to the Microsoft web site and replace the entry in the history object with
Unless you'd remembered the previous URL, there would be no navigating back
to it. ]

John Locke

Previous by Author: RE: Technical Skills on Resume
Next by Author: RE: Word, too [was]Does Frame Suck? From a new user
Previous by Thread: re: Re: Summary: Are Redirects Annoying?
Next by Thread: Re: Summary: Are Redirects Annoying?

What this post helpful? Share it with friends and colleagues:

Sponsored Ads