Answers
Jul 11, 2006 - 02:45 PM
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:
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:
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";
}
Next, you'll attach an onLoad event to the tag that after the setTimeout value (your delay) has expired, it will execute the redirect function:
Please let me know if this helps you out...
Jul 11, 2006 - 07:45 PM
Add New Comment