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??

13th Jan 2017, 2:31 PM
amiel
3 Respostas
0
setInterval (function (){ document.getElementById ('id').style.display="none"; },1000); you can used visibility="hidden" ;
13th Jan 2017, 2:37 PM
ASNM
ASNM - avatar
0
thanks.. by the way what is clearInterval()???
14th Jan 2017, 7:46 AM
amiel
0
stop setInterval
14th Jan 2017, 12:38 PM
ASNM
ASNM - avatar