Web Teacher Software
web database
CGI tutorial
database consulting
web database training
contact us about web 
database software
Hosted Database Solutions
webteacher home
Web Teacher Consulting

javascript tutorial graphic

Webteacher Software now offers

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");
<INPUT type=button value="try it"

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");

Bonus Chapter! Special Effects.

Home | WebData - Web Database Software | Javascript | CGI | Consulting | Map Builder | Contact Us | The Press Room