Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

HTML redirect tage

0 views
Skip to first unread message

Chris

unread,
Mar 9, 2000, 3:00:00 AM3/9/00
to
Hi!

Does anyone know/recal what the redirect tag for HTML is?

Thanks

Chris Moore
CTC

R.J. Vrijhof

unread,
Mar 10, 2000, 3:00:00 AM3/10/00
to
<meta http-equiv="refresh" content="4; URL=uri">

-the 4 stands for 4 seconds to wait before redirecting
-for uri you have to fill in the url/uri where you want to redirect to

You could of course also put in some javascript:

<script type="text/javascript" language="javascript">
// <!--
window.location="uri";
// -->
</script>

Or, on the server side with a http 301 header.

Richard Vrijhof

Timothy A. McDaniel

unread,
Mar 10, 2000, 3:00:00 AM3/10/00
to
On redirecting, In article <38C82DA1...@azlan.nl>,

R.J. Vrijhof <Richard...@azlan.nl> wrote:
>You could of course also put in some javascript:

which does not work for those of us who disable Javascript.

><meta http-equiv="refresh" content="4; URL=uri">

This depends on the browser noticing it, but I think most browsers
do. This makes Back a little dicier, I think; you have to hit Back
and then hit Back again within 4 seconds (in the example case) or you
go nowhere. I am told that search engines don't like this redirect
for some reason, but I don't recall any details.

(While I'm on the topic: sometimes I get into a state where I'll go to
a URL, it flashes something, and then goes to another page. I hit
Back, and it flashes and doesn't change the page. Is this due to a
"refresh" with 0-second delay? It's really obnoxious, whatever it
is.)

>Or, on the server side with a http 301 header.

Isn't this the most general solution, in that any reasonable browser
has been able to handle this for years, and it doesn't screw up the
Back button?

--
Tim McDaniel is tm...@jump.net; if that fail,
tm...@us.ibm.com is my work account.

Alan J. Flavell

unread,
Mar 10, 2000, 3:00:00 AM3/10/00
to
On 10 Mar 2000, Timothy A. McDaniel wrote:

> (While I'm on the topic: sometimes I get into a state where I'll go to
> a URL, it flashes something, and then goes to another page. I hit
> Back, and it flashes and doesn't change the page. Is this due to a
> "refresh" with 0-second delay?

Usually, yes.

> It's really obnoxious, whatever it is.)

Some authors seem to consider that to be a benefit. They imagine that
they are "trapping" the reader on their pages, and that their
advertising will benefit from it. Mumble.

> >Or, on the server side with a http 301 header.
>
> Isn't this the most general solution, in that any reasonable browser
> has been able to handle this for years, and it doesn't screw up the
> Back button?

Of course it is. But many fools won't use it because they claim that
"it's not an HTML command". (Clue: HTML is markup - it does not have
"commands").


isoma

unread,
Mar 11, 2000, 3:00:00 AM3/11/00
to
In article <38c82...@news.columbia-center.org>, Chris wrote:
>Hi!
>
>Does anyone know/recal what the redirect tag for HTML is?

Redirects are actually part of HTTP, rather than HTML. This lets you
redirect images as well as HTML pages.

--
mailto:is...@altavista.net - +44441089921 - Tim Bannister
http://www.jellybaby.net/~isoma/ - Spam? What spam? (pats procmail)

0 new messages