Menu
Hello!
I need to run a set interval after ‘x’ seconds. To do this I put the setInterval into a setTimeout, like this:
[CODE]setTimeout( “window.setInterval( ‘myFunction(“Dog”)’ ,5000)” ,5000 );
But the web browser alert me that there is a ‘)’ missing!!!!
Then I try 2 make this in 2 steps like:
[CODE]setTimeout( “aFunction(“dog”)” ,5000 );
function aFunction (var)
{
window.setInterval( ‘myFunction(var)’ ,5000);
}
But the web browser alert me that var is undefined!!
Anyone can help me please???May the first code works?? Thank you and have a good day.
Jonathan