Re: Redirecting A Webpage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



i use javascript such as:
<head>
<script language="JAVASCRIPT">
  function changePage()  {
	 location = "http://www.whereever.com/nextpage.php";
  }
</script>
</head>

<body>
  <script language="JAVASCRIPT">
    setTimeout("changePage()",10000)
  </script>
</body>

the setTimeout function waits for 10 seconds (10,000 milliseconds) before 
redirecting.  i have some standard html code on the site that says something 
about "this webpage has been changed, please update your bookmark, blah, blah, 
you will be redirected momentarily."

hth


> I would like to setup an index.php file to redirect to another .php file 
> as soon as it is invoked, like [response.redirect] does in Active Server 
> Pages. Does anyone know this cammand off the top of their head? Thanks 
> in advance. :)
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux