intervallo = setInterval(function () {
//azioni
clearInterval(intervallo);}, 1000);//1 secondo