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

209
Views
Use meta conditionally in JavaScript

I have following tag in my code

<meta http-equiv = "refresh" content="3"/>

This refreshes my page in every 3 seconds. I want to use it conditionally.

That means first time refresh in 3 seconds and later refresh after 40 seconds.

How to achieve it??

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

0

use javascript like

int condition = func();
int timeIn = 0;
switch(condition){
case '<Your Value>' : time=3000;break;
.
.
.
}
setTimeout(function(){
 window.location.reload();
}, timeIn);

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!