Forum Moderators: open
var s=10;
function changeSec() {
if(s>=0) {
document.getElementById('seconds').innerHTML=s;
s = --s;
setTimeout(changeSec, 1000);
} else {
document.getElementById('seconds').innerHTML='<a>foo</a>';
}
}
And you can also add meta-refresh if you want it to work without js.