Solved

5 second pause then redirect.

Posted on 2004-09-13
4
158 Views
Last Modified: 2010-04-07
Howdy, I was wondering if anyone had a code snippet out there that displays a page for X seconds and then loads another page.

Thanks, Eric
0
Comment
Question by:EWilson12
  • 3
4 Comments
 
LVL 23

Expert Comment

by:adilkhan
ID: 12048843
<Script>
function gothere() {
window.location = "PATH_HERE.HTML"
setTimeout("gothere()", 5000)
}
</Script>

<body onLoad="gothere()">
0
 
LVL 23

Accepted Solution

by:
adilkhan earned 500 total points
ID: 12048950
Sorry ignore my Above Post.
Simply use this on that page

<body onLoad="setTimeout('window.location=\'http://www.yahoo.com\'', '5000')">
0
 
LVL 1

Author Comment

by:EWilson12
ID: 12049128
works great thanks ;)
0
 
LVL 23

Expert Comment

by:adilkhan
ID: 12049168
Great I helped.
Thanks for an "A"
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

I still run into .cgi files every now and then. In some instances, I actually prefer the simplicity of a .cgi script to other options. Since I use DreamWeaver extensively, what I needed was a way to open .cgi scripts in Dreamweaver. And I wanted to …
Adobe Dreamweaver CS5 is a WYSIWYG web page editor that has advanced HTML, CSS, and Javascript rendering functionality and is probably the most well-known HTML editor available. Much of Dreamweaver's appeal centers around the Design View interfac…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now