3,560 results
Open links in new tab
  1. How to create javascript delay function - Stack Overflow

    Jul 13, 2014 · I have a javascript file, and in several places I want to add a small delay, so the script would reach that point, wait 3 …

  2. JavaScript Timers - W3Schools

    JavaScript timers let you run a function after a delay or repeatedly at fixed intervals.

  3. How to Delay a JavaScript Function Call using JavaScript ?

    Jun 14, 2025 · It takes a callback function and a delay value, running the function once after the delay elapses. Example 1: This …

  4. How to Wait n Seconds in JavaScript? - GeeksforGeeks

    Jul 23, 2025 · Here are the various methods to wait n seconds in JavaScript 1. Using setTimeout () Function setTimeout () is an …

  5. Window: setTimeout () method - Web APIs | MDN - MDN Web Docs

    Oct 26, 2026 · The setTimeout() method of the Window interface sets a timer which executes a function or specified piece of code …

  6. Javascript sleep/delay/wait function - Stack Overflow

    Oct 22, 2025 · I want to create a JavaScript sleep/delay/wait function that I can call anywhere in the script, like jQuery's .delay() I am …

  7. Delay, Sleep, Pause & Wait in JavaScript - SitePoint

    Sep 7, 2023 · Learn how to create a sleep function in JavaScript for pausing code execution, given no built-in sleep() function for …

  8. How to delay a JavaScript function call using JavaScript?

    Mar 15, 2026 · In this tutorial, we are going to learn how can we delay a function in JavaScript. Whenever we want to call a function …

  9. Delays in JavaScript: How to Make Your Code Wait the Right Way

    Nov 13, 2025 · While JavaScript doesn’t have a built-in sleep () function, adding a delay is simple once you understand …

  10. JavaScript Wait – How to Sleep N Seconds in JS with .setTimeout()

    Apr 26, 2022 · Those are then passed to the setTimeout () method, and there will be a delay of 3 seconds once the function is called: …