I want to set a simple condition inside the loop so that the code inside is only run if any input is focused or if any element in the body is focused. How do I do each thing?
setInterval(function(){
document.getElementById('clickMe').style.display= "block";
}, 1000 );
thanks