//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); }