set parameter problem
Posted: Wed Mar 03, 2004 11:05 pm
i have a function countDown()
function countDown(minit,second)
{
.......
counter=setTimeout("countDown()", 1000);
}
the problem is how to put parameter into function ?
any bracket or comma want to add in "minit,second" ?
something like this:
counter=setTimeout("countDown(minit,second)", 1000);
function countDown(minit,second)
{
.......
counter=setTimeout("countDown()", 1000);
}
the problem is how to put parameter into function ?
any bracket or comma want to add in "minit,second" ?
something like this:
counter=setTimeout("countDown(minit,second)", 1000);