5 second pause then redirect.

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
LVL 1
EWilson12Asked:
Who is Participating?
 
Saqib KhanConnect With a Mentor Senior DeveloperCommented:
Sorry ignore my Above Post.
Simply use this on that page

<body onLoad="setTimeout('window.location=\'http://www.yahoo.com\'', '5000')">
0
 
Saqib KhanSenior DeveloperCommented:
<Script>
function gothere() {
window.location = "PATH_HERE.HTML"
setTimeout("gothere()", 5000)
}
</Script>

<body onLoad="gothere()">
0
 
EWilson12Author Commented:
works great thanks ;)
0
 
Saqib KhanSenior DeveloperCommented:
Great I helped.
Thanks for an "A"
0
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.

All Courses

From novice to tech pro — start learning today.