Timed Landing Page Redirect | Community
Skip to main content
July 6, 2017
Question

Timed Landing Page Redirect

  • July 6, 2017
  • 1 reply
  • 2304 views

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!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Chris_Johnston
Level 6
July 6, 2017

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='example.com'
  
}, 3000);
  
</script>
</body>
</html>

SanfordWhiteman
Level 10
July 6, 2017

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.