Question

Locked

Delayed Web Page

By technogeek-1995 ·
Does anybody know how to (in HTML) write a redirecting page. Let me describe it to you...
-waits 5 seconds
-says it is redirecting you
-takes you to a new site

(ie: churches website would have a link in the menu bar, you click it. It then shows...redirecting from KokomoGrace.org in 5...4...3...2...1...then it loads the Youth's Facebook profile page)

Thanks

This conversation is currently closed to new comments.

4 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -

You use a META tag to do it....

by ThumbsUp2 In reply to Delayed Web Page

You have a normal web page which might contain header text explaining the visitor will be redirected in 10 seconds... and maybe it's made pretty with a background or pretty text.... what ever you want.

In the code for that web page, anywhere between the HEAD tags, you place this tag and change the URL to point to where they are to be redirected to. The 10 is for number of seconds to wait before pushing them to the next site.

<meta http-equiv="refresh" content="10;url=http://any.domain.com">

Please note, the quotes are mandatory.

Hope that helps.

Collapse -

Thanks...I will try this

by technogeek-1995 In reply to You use a META tag to do ...
Collapse -

Don't forget....

by ThumbsUp2 In reply to Thanks...I will try this

You can use the URL field in the META tag to redirect to another page within your own site too. Just tack on a file name after the .com and before the quote. I use this trick in an index.htm file (or whatever your server requires) within, for example, the images folder. You don't want people peeking into the folder, so if they do enter the folder by typing the URL into their browser window directly, I redirect them right back to the root (home page) index.htm file, or default.htm, or default.html, depending on your server requirements.

Back to Web Development Forum
4 total posts (Page 1 of 1)  

Related Discussions

Related Forums