Closed Thread Icon

Preserved Topic: redirect (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=17888" title="Pages that link to Preserved Topic: redirect (Page 1 of 1)" rel="nofollow" >Preserved Topic: redirect <span class="small">(Page 1 of 1)</span>\

 
butcher
Paranoid (IV) Inmate

From: New Jersey, USA
Insane since: Oct 2000

posted posted 12-20-2000 21:51

I don't have my javascript book with me (left it at work DUH!) so I can't look up the best way to do this. Would someone please tell me the easiest way to automatically redirect a viewer from a page on one server to a page on another server. Right now I just have it set up to
onLoad="open(http://www.address.com)";
but I at the very least want it to come up in the same window. I tried adding target="self", but that either doesn't work, or, I put it in the wrong place. Thanks in advance.

Bugimus
Maniac (V) Mad Scientist

From: New California
Insane since: Mar 2000

posted posted 12-20-2000 22:17

This is probably the quickest way using JavaScript:

<script language="JavaScript">
window.location="http://www.yahoo.com/"
</script>

But what if your viewer has js disabled? Then you can put this in the header:

<head>
<META HTTP-EQUIV="Refresh" CONTENT="0; URL=http://www.yahoo.com/">
</head>

Cheers!

butcher
Paranoid (IV) Inmate

From: New Jersey, USA
Insane since: Oct 2000

posted posted 12-20-2000 22:27

Thanks Bugimus.

« BackwardsOnwards »

Show Forum Drop Down Menu