css - Javascript setTimeout(); for ProgressBar doesn't work -
on website have progressbar , when click download button, progressbar starts. way want progress bit slowly, thought use settimeout();.
if @ jsfiddle, when click download button happens. i've tested on firefox , console tells me referenceerror: starttime not defined.
how fix this?
you have errors in fiddle shared
onclick="starttime(i);"shouldonclick="starttime(0)"the line
document.getelementbyid("movingbar").style.width = + "%";
should be
document.getelementbyid("prog").style.width = + "%"; as div name prog instead of movingbar
Comments
Post a Comment