Hi, im working on a progress bar in java script and i need it to reset it after it hits 100%. Going infinetly.
function start(al) {
var bar = document.getElementById('progressBar');
bar.value = al;
al++;
var sim = setTimeout("start(" + al + ")", 1);
if (al == 100) {
bar.value = 100;
clearTimeout(sim);
}
}
var amountLoaded = 0;
This works only if the page is refreshed. But it doesnt work automaticly.