Automatic link (without clicking)
When I load my home page I want to be automaticaly redirected to other URL. I read somewhere that this piece of code is all I need.
<HTML>
<HEAD>
<META HTTP-EQUIV="Refresh" CONTENT="2;URL="http://www.jumphere.com/home.html">
</HEAD>
</HTML>
However this code does not redirect me anywhere. It looks like it is reloading the original page every 2 seconds.
What can I do? Is there any mistake?
Re: Automatic link (without clicking)
Quote:
Originally posted by Doctor Luz
When I load my home page I want to be automaticaly redirected to other URL. I read somewhere that this piece of code is all I need.
<HTML>
<HEAD>
<META HTTP-EQUIV="Refresh" CONTENT="2;URL="http://www.jumphere.com/home.html">
</HEAD>
</HTML>
However this code does not redirect me anywhere. It looks like it is reloading the original page every 2 seconds.
What can I do? Is there any mistake?
Your quotes are off.... it should be:
<HTML>
<HEAD>
<META HTTP-EQUIV="Refresh" CONTENT="2;URL=http://www.jumphere.com/home.html">
</HEAD>
</HTML>
The " after the URL=" causes the page to think you want to go to the current URL... which is why the page reloads, and reloads, and reloads, and reloads, and reloads, .....
<meta http-equiv="Location" value="newurl">
Works as well, the nice thing about option one above is that you can print a message that lets the user know that they are about to be redirected. And possibly provide a link in case the refresh doesn't work.
TG