can someone remind me how...

liunx

Guest
can someone remind me how...<br />
<br />
to make a website URL switch to an alterantive URL automatically using HTML...<br />
<br />
I've forgotten !!<!--content--><meta http-equiv="refresh" content="0; URL=http://www.yourdomain.com/path/page.html"><br />
<br />
(the number zero being seconds)<br />
<br />
AND<br />
<br />
<SCRIPT LANGUAGE="JavaScript"><br />
<!-- timed redirect<br />
redirTime = "0000";<br />
redirURL = "http://www.yourdomain.com/path/page.html";<br />
function redirTimer()<br />
{self.setTimeout("self.location.href = <!-- m --><a class="postlink" href="http://www.htmlforums.com/archive/index.php/redirURL;">http://www.htmlforums.com/archive/index.php/redirURL;</a><!-- m -->",redirTime); }<br />
// timed redirect --><br />
</script><br />
<br />
(the number 0000 being milliseconds)<!--content-->Not all browsers can follow that code, so aways put in a little bit of text and a clickable link that users can follow if the automated stuff fails to work for them.<br />
<br />
Search engines can also follow the clickable link, but not the javascript stuff.<!--content-->Thanks !!<!--content-->Try:<br />
<br />
<script language="JavaScript"><br />
<!--<br />
location.href=http://www.htmlforums.com/archive/index.php/"NEW LOCATION"<br />
--><br />
</script><!--content-->Add type="text/javascript" to every <script> tag for valid code.<!--content-->
 
Back
Top