Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

166
Views
Switch between pages with JS

I have three webpage links, i want to switch between the pages after 30secs.

How do I do this with HTML/JS?

Use Case:

start with page abc.com
after 30secs, switch to page dfe.com
after 30secs, switch to page ghi.com 
return to page abc.com and start from above again with the timer

Thank you

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Your script on each page will look something like this:

<script>
    window.onloadend = () => {
        setTimeout(() => {
            location.href = "page_to_next_page";
        }, 30000); // 30000ms = 30s
    }
</script>

Here, setTimeout is used to delay execution of the function inside of it by the duration specified in milliseconds.

You'll need to add this on each page but take note this will cause the site to redirect without any interaction from the user.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!