+ 1

How do you delay a prompt message in JS?

If i want to wait 10 seconds before a prompt appears how would I do that?

19th Jun 2020, 10:49 PM
TheCoolTroy
3 Antworten
+ 4
Use setTimeout function
20th Jun 2020, 12:45 AM
Ayush Kumar
Ayush Kumar - avatar
+ 2
https://www.google.com/url?sa=t&source=web&rct=j&url=https://stackoverflow.com/questions/16873323/javascript-sleep-wait-before-continuing&ved=2ahUKEwjB867k-47qAhUy5uAKHSP4BWAQFjAAegQIBRAB&usg=AOvVaw0ublGbLQaRUlVS8PNLWbv2
19th Jun 2020, 10:54 PM
Muhammad Galhoum
Muhammad Galhoum - avatar