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

135
Views
How to delay the next command in javascript?

I am stuck in a situation where I want to put some delay between some lines of javascript code like following :

function sayHello(){
document.getElementById("txt").innerHTML = "Hello";
// some delay of about 2 seconds 
document.getElementById("txt").innerHTML = "I am a programmer";

}

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

0

Try setTimeout("YOUR CODE HERE", 2000 /*(2 seconds in miliseconds)*/) You can read more Here

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!