var i = 5;
function init(){
//Get control of the object
var span1 = document.getElementById("span1");
//Modify its properties
span1.innerHTML = i;
i--;
//Timing operations: window.setTimeout('',1000) window.setInterval();
window.setTimeout('init()', 1000);
}