i++;
document.getElementById('show').value?=?i;
} window.onload=function(){?
var?timer?=?'';
var?but1?=?document.getElementById('but1');
p> p>var?but2?=?document.getElementById('but2');
but1.onclick=function(){
timer?=?setInterval( 'ss ()',1000);
}
but2.onclick=function(){
clearInterval(timer);
} } 아니면 window.onload=function(){?
var?timer?=?'';
var?but1?=?document.getElementById('but1') ;
var?but2?=?document.getElementById('but2');
var?i=0;
function?ss(){< /p >
i++;
document.getElementById('show').value?=?i;
}
but1.onclick=function () {
timer?=?setInterval(ss,1000);
}
but2.onclick=function(){
clearInterval(타이머);
} }