### The SetTimeout() Method

This one is easy! You can make and JavaScript command execute after a delay by typing the command like this:

setTimeout(" your function ", delay in milliseconds)

So for example, this function would make an alert box appear 5 seconds after you click the button.

function MsgBox() { alert("Hello There"); }
<FORM> <INPUT type=button value="try it" onClick="setTimeout('MsgBox()',5000)"> </Form> |

So, when I made my welcome window a few pages ago, I simply had to use this function in the <BODY onLoad=" "> statement.

function Welcome() { NewWindow = window.open("welcome.html","","width=200,height=200"); SetTimeout("NewWindow.close()",5000); }