Solved

5 second pause then redirect.

Posted on 2004-09-13
4
169 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 23

Expert Comment

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

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

Accepted Solution

by:
Saqib Khan 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:Saqib Khan
ID: 12049168
Great I helped.
Thanks for an "A"
0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…

728 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