0
How to hide an element?? I want to write a simple traffic light using the div tag. How use set interval to hide the tag??
How to hide an element?? I want to write a simple traffic light using the div tag. How use set interval to hide the tag??
3 ответов
0
setInterval (function (){
document.getElementById ('id').style.display="none";
},1000);
you can used
visibility="hidden" ;
0
thanks.. by the way what is clearInterval()???
0
stop setInterval