Timing Javascript

You can creat some time related Javascript with DHTML. For example, You can make alert with this function. Here is code.


  var much = 20;

  function first() {
	alert ("this is the first");
	timeID = setTimeout("second()",(5*much));
  }

  function second() {
	alert ("this is the second");
	timeID = set Timeout("last()",(10*much));
  }

  function last() {
	alert ("this is the last one");
  }
  

The first, you must define the time length. I used much(because many Microsoft website use much) and 20.
Here is the example.
Go back to home.