Here is my code - I want Function test to execute only after 5 seconds.
[CODE=javascript]function test(){
alert("After 5 sec");
}
function f2(){
setTimeout(test ,500);
}[/CODE]
Problem is - Instead of 5 seconds delay - this program gives about 2 secods delay - which is very wired.
Please Help Thanks,
[CODE=javascript]function test(){
alert("After 5 sec");
}
function f2(){
setTimeout(test ,500);
}[/CODE]
Problem is - Instead of 5 seconds delay - this program gives about 2 secods delay - which is very wired.
Please Help Thanks,
Comment