Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript function to sleep

setTimeout(function (){
  
  // Something you want delayed.
            
}, 5000); // How long you want the delay to be, measured in milliseconds.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #function #sleep
ADD COMMENT
Topic
Name
7+4 =