|
-
Jan 7th, 2004, 11:50 AM
#1
Thread Starter
New Member
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?
-
Jan 7th, 2004, 12:14 PM
#2
Frenzied Member
here. in your body tag:
onLoad="location.href='http://www.msn.com'"
Have I helped you? Please Rate my posts. 
-
Jan 7th, 2004, 12:50 PM
#3
<meta http-equiv="Location" value="newurl">
All these things confuse the back button though. Any chance you can do this thing on the server side?
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Jan 7th, 2004, 01:00 PM
#4
Re: Automatic link (without clicking)
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
-
Jan 7th, 2004, 01:12 PM
#5
Thread Starter
New Member
Thank you to all guys.
Have a nice day!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|