MadCommando
07-17-2003, 04:57 PM
here's a technical question.
I run one function declare a variable then run another function and the same variable is undefined.... why?
var secndsd=document.site.secndsd.value
alert(secndsd)
downr()
}
function downr()
{
alert(secndsd)
secndsd--
output.document.site.secndsdisp.value=Display(secndsd)
if(secndsd<=0){disp()}
else down=setTimeout("downr()",1000);
}
my first alert comes up as my input number, the second shows an error saying the variable is undefined. :confused:
I run one function declare a variable then run another function and the same variable is undefined.... why?
var secndsd=document.site.secndsd.value
alert(secndsd)
downr()
}
function downr()
{
alert(secndsd)
secndsd--
output.document.site.secndsdisp.value=Display(secndsd)
if(secndsd<=0){disp()}
else down=setTimeout("downr()",1000);
}
my first alert comes up as my input number, the second shows an error saying the variable is undefined. :confused: