Re: Auto Re-direct

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Jon Spivey (js_at_roksteady.net)
Date: 03/21/04


Date: Sun, 21 Mar 2004 16:28:04 -0000

That probably depends on the reason for the redirect - I think there's 2
things everyone, whatever their level of knowledge, knows about the
internet. First the little hand means a link you can click on and second if
you don't like a page you can hit back to return to where you came from.

I wouldn't mess with those 2 basic functions unless there's no
alternatives - my point is there is an alternative to the meta

Jon

Thomas A. Rowe wrote:
> I know that I indicated the Meta Refresh, when I should have indicate
> the script you had posted.
>
> However, if someone is re-directing from a soon to be expired domain
> or URL, then the need to use the browser's back button is not a major
> issue.
>
>
> "Jon Spivey" <js@roksteady.net> wrote in message
> news:uXF9q90DEHA.688@tk2msftngp13.phx.gbl...
>> None atall
>>
>> Somebody made the valid point earlier in this thread that the
>> downside of using the meta is it breaks the back button - ie user
>> goes to page meta sends him to a different page he hits back the
>> meta kicks in again and sends him back to the same page. Endless
>> loop. The javascript solution this guy posted would do exactly the
>> same.
>>
>> The javascript I posted up earlier won't break the back button - the
>> key is location.replace('page.htm') rather than
>> location.href='page.htm'. We'd still need the meta as a fall back to
>> cover non-script users <script type="text/javascript">
>> location.replace('otherpage.htm');
>> </script>
>> <noscript>
>> <META HTTP-EQUIV=Refresh CONTENT="0; URL=otherpage.htm">
>> </noscript>
>>
>> Jon
>>
>> Thomas A. Rowe wrote:
>>> What is the advantage of using this over the meta refresh?
>>>
>>>
>>> "Wizard" <anonymous@discussions.microsoft.com> wrote in message
>>> news:10d5001c40f4c$2f1bf8f0$a301280a@phx.gbl...
>>>> Hi
>>>>
>>>> It's very simple, use JavaScript.
>>>>
>>>> Here is an example:
>>>>
>>>> Add this between <head> and </head>:
>>>>
>>>> <SCRIPT LANGUAGE="JavaScript">
>>>> <!-- Begin
>>>> redirTime = "10000";
>>>> redirURL = "http://www.123.test/otherpage/";
>>>> function redirTimer() { self.setTimeout
>>>> ("self.location.href = redirURL;",redirTime); }
>>>> // End -->
>>>> </script>
>>>>
>>>> and this one to your <body>
>>>>
>>>> <body onLoad="redirTimer()">
>>>>
>>>> Number 10000 is 10 seconds.
>>>>
>>>>
>>>> --Wizard--
>>>>
>>>>
>>>>> -----Original Message-----
>>>>> Is there a simple script I can add to my home page to
>>>>> automatically (seamlessly) take the browser to another page..
>>>>>
>>>>> For example my domain www.123.test
>>>>>
>>>>> I want to automatically go to www.123.test/otherpage/
>>>>>
>>>>>
>>>>> I am sure this is simple to do but I don't know how to..
>>>>>
>>>>> Any assistance appreciated.
>>>>>
>>>>> John Parker
>>>>>
>>>>>
>>>>> .



Relevant Pages

  • Re: How do YOU react to being cut up?
    ... Hit no nerve whatsoever. ... the meantime I've been out and had A Life - you should try it. ... can be angry for a brief moment, and then carry on with their life. ... There's nothing special about the internet. ...
    (uk.rec.driving)
  • Re: On Installing Windows
    ... Don't do any business on the internet. ... > instead of wireless and then take a web site hack hit. ... faulty phone jack, I assume. ...
    (alt.comp.anti-virus)
  • RE: [fw-wiz] risk level associated with VPNs?
    ... Most companies got hit with the SQL Slammer worm in this manner. ... Employees (developers) running unpatched SQL Server got hit ... when they connected their laptops to the Internet from home. ... in the internal networks but never got the courage to shut them down. ...
    (Firewall-Wizards)
  • Re: Vista cannot connect to internet - local access only
    ... Thanks so much Jon. ... What happens if you plug your internet connection ... straight into your machine - at least this will identify if it's the router. ... NIC fail and do the same thing) but for both wired and wireless to go would ...
    (microsoft.public.windows.vista.general)
  • Re: Windows XP Home - Cant query DNS.
    ... Any chance that your unpatched/unprotected PC got hit by bad stuff while it ... unpatched/unprotected PCs to get infected. ... various internet settings, restored defaults, hit permissions, and so ... it cannot be enabled to a global policy set by the netadmin. ...
    (microsoft.public.windowsxp.general)