jquery - How to set time delay in javascript - Stack Overflow

PHOTO EMBED

Sun Oct 15 2023 01:56:07 GMT+0000 (Coordinated Universal Time)

Saved by @manami_13 #javascript

var delayInMilliseconds = 1000; //1 second

setTimeout(function() {
  //your code to be executed after 1 second
}, delayInMilliseconds);
//var is not required. ,1000 is OK
content_copyCOPY

https://stackoverflow.com/questions/17883692/how-to-set-time-delay-in-javascript