5 second pause then redirect.

Posted on 2004-09-13
Medium Priority
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
Question by:EWilson12
  • 3
LVL 23

Expert Comment

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

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

Accepted Solution

Saqib Khan earned 2000 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')">

Author Comment

ID: 12049128
works great thanks ;)
LVL 23

Expert Comment

by:Saqib Khan
ID: 12049168
Great I helped.
Thanks for an "A"

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

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 …
This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…
The video will let you know the exact process to import OST/PST files to the cloud based Office 365 mailboxes. Using Kernel Import PST to Office 365 tool, one can quickly import numerous OST/PST files to Office 365. Besides this, the tool also comes…
If you are looking for an automated tool which can generate reports for Outlook emails and other items from PST file, then you can go for Kernel PST Reporter tool. The reports which are created by this tool are helpful to analyze and understand PST …

623 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