Answers for "settimeout for function"

223

javascript settimeout

setTimeout(function(){
 	alert("Sup!"); 
}, 2000);//wait 2 seconds
Posted by: Guest on June-27-2019
2

settimeout function

setTimeout(function(){ 
$('#overlay'). modal('hide') 
}, 5000);
//#overlay will be the ID of modal which you want to hide or show modal
Posted by: Guest on November-11-2020
0

settimeout js

//You can also send a argument along with a timed call
setTimeout("your_fun('bob');", 1000)

function your_fun(name) { //Prints "Hello world! bob" after one second
	alert("Hello world! " + name);
}
Posted by: Guest on October-22-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language