Re: Timed Landing Page Redirect

Anonymous
Not applicable

Timed Landing Page Redirect

Hello All,

I was wondering if anyone knew any "simple" javascript coding I could implement to redirect a landing page to another landing page after about 10 seconds.

Thanks Everyone!

2 REPLIES 2
Chris_Johnston
Level 8

Re: Timed Landing Page Redirect

This sounds like a terrible idea and I hope you have a good reason that is not the super spammy sounding reasoning I am thinking of but...

<html>
  
<body>
  
<p>You will be redirected in 3 seconds</p>
  
<script>
  
var timer = setTimeout(function() {
  window
.location='http://example.com'
  
}, 3000);
  
</script>
</body>
</html>

SanfordWhiteman
Level 10 - Community Moderator

Re: Timed Landing Page Redirect

Nothing spammy here... he's waiting for a token to become available on the back end before displaying it in a follow-up page.

However I think I have a way to poll for the token itself so you don't need to guess at it.