Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 174
  • Last Modified:

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
0
EWilson12
Asked:
EWilson12
  • 3
1 Solution
 
Saqib KhanSenior DeveloperCommented:
<Script>
function gothere() {
window.location = "PATH_HERE.HTML"
setTimeout("gothere()", 5000)
}
</Script>

<body onLoad="gothere()">
0
 
Saqib KhanSenior DeveloperCommented:
Sorry ignore my Above Post.
Simply use this on that page

<body onLoad="setTimeout('window.location=\'http://www.yahoo.com\'', '5000')">
0
 
EWilson12Author Commented:
works great thanks ;)
0
 
Saqib KhanSenior DeveloperCommented:
Great I helped.
Thanks for an "A"
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now