Select Categories Below
Status: Closed Points: 50 Time: 15:54 - Jul 11, 2006
david
How do I redirect the user automatically after a few seconds to another web page? Is there a meta tag for this, or do I have to use javascript? What's the best way of doing it?
Categories:
Add Categories
When adding more than one category, separate them with commas.
Advertisement
rcastagna
Date:: Jul 11, 2006
Time:: 17:45
david, You can use either Javascript of a meta tag for this...but the meta tag is by-far the easiest to implement. Here is the structure of the tag: <meta http-equiv="refresh" content=""> The "work" is going to be done in the "content" of the tag by specifying the delay, and the url where you want the visitor to go. The delay is specified in seconds. The url needs to be the full URL, not just the name of the local file: <meta http-equiv="refresh" content="5;URL=http://www.yourserver.com/newpage.html&q... Make sure you check the content - the quotes should be around the entire string, not just the delay or the url, and the semi-colon ";" is required between the delay and url. If you want to do this with javascript, you'll need to rig up an onload event that is executed after the delay (specified in milliseconds). function redirect() { window.location.href = "http://www.yourdomain.com/newpage.html&q... } Next, you'll attach an onLoad event to the <BODY> tag that after the setTimeout value (your delay) has expired, it will execute the redirect function: <BODY onload="javascript:setTimeout('redirect()', 5000)"> Please let me know if this helps you out...
Time:: 22:45
great, the metatag works perfect. thanks for the help
Question Answered
This question has been closed, and points have been rewarded to the following experts:
You're welcome however to comment or give additional information or if you wish, you have the ability to write an Answer Summary for the Summary Area.
Answer this Question
New User
Email:
Upon submission of this form, you will automatically be registered as a Quomon user and we will send your login information to this address
Registered User
Username:
Password:
Forgot Your Password?
Enter your email address below and we will resend your login information to you.
Login Information Sent
Questions
Automatic Web Page Redirection from Wordpress.com ...
How do I automatically redirect a user to another ...
Automatically refresh internet pages?
You have 100 characters to use
Rank
Expert
Points
1.
1073
2.
890
3.
877
4.
760
5.
620
6.
375
7.
370
8.
305
9.
275
10.
185
Register today to share your knowledge with the community and be recognized and rewarded for your contributions.
Register Here
"Psst, Quomon is a great site. Pass it on." Tell a Friend | Link To Us | Save to Delicious | Digg it
Language Options
English:
Español:
Sponsors
Questions and Answers Software Real Estate Postcards Marketing Fulfillment