apamphilon

Set timeout

//set timout syntax
//This can be the name of a function:
function explode(){
    alert("Boom!");
}
setTimeout(explode, 2000);

//Or an anonymous function:

setTimeout(function(){
    alert("Boom!");
}, 2000);

Comments: