DIGIT-ARC read-only archive · snapshot: July 23, 2026

Delay Javascript Execution

3 posts · originally from https://geek.digit.in/community/threads/delay-javascript-execution.125068/

A
Aspire Original post #1
Mar 13, 2010 at 7:07 PM
The Script needs to do the following:-

1. Accept the input from the user
ie. The user tells the amount of time by which the execution should be delayed.
2. Delays the execution of the script by that amount of time
Liverpool_fan
Mar 13, 2010 at 7:30 PM
Read and Rip
*pastebin.fosspowered.com/view/78152815

Alternatively you can use window.prompt() for getting input but forms and events is a better way.
nims11
nims11 #3
Mar 15, 2010 at 12:36 PM
let the script be in a function.
get the time delay and then use the setTimeout()