Monday, February 13, 2006

Executing JavaScript code with a time delay

To execute a JavaScript code after a time interval use the setTimeOut function:

setTimeout('
sayHello()', 1000);

function sayHello(){
alert("Hello :-)");
}

0 Comments:

Post a Comment

<< Home