setTimeout("yourfunction()",1000);
The first parameter is a string, which is going to be the function you want to use. This function was named "myfunction()". The second parameter is a number. This number is going to be the number of milliseconds the browser should wait before executing your function. Above, we have 1000 milliseconds, which will be 1 second.
Ex :--
Now, how did I get that text to change a second time while you were able to just watch? Let's look at the script for this trick: at following site
--------------------------------------------------------------------------------