javascrpt Respecto al problema de que setInterval no puede llamar a funciones
i++;
document.getElementById('mostrar').value?=?i;
} window.onload=function(){?
var?timer?=?'';
var?but1?=?document.getElementById('but1'); p> p>
var?but2?=?document.getElementById('but2');
but1.onclick=function(){
temporizador?=?setInterval( 'ss ()',1000);
}
but2.onclick=function(){
clearInterval(temporizador);
} } O window.onload=function(){?
var?timer?=?'';
var?but1?=?document.getElementById('but1') ;
var?but2?=?document.getElementById('but2');
var?i=0;
función?ss(){
i++;
document.getElementById('show').value?=?i;
}
pero1.onclick=función () {
temporizador?=?setInterval(ss,1000);
}
but2.onclick=función(){
clearInterval (temporizador);
} }