What happens when an event handler is set to a setinterval() | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

What happens when an event handler is set to a setinterval()

I came across a program which had the event handler for a onfocus event as setinterval(change,1) so, here, once the focus is taken away from the element, will the function change be called or will it become deactivated somehow?

2nd Dec 2017, 11:37 AM
Pradyumna Ym
Pradyumna Ym - avatar
1 Resposta
0
setInterval(functionwithoutbrackets,time) repeats the function every (time) milliseconds
2nd Dec 2017, 12:52 PM
šŸ‘‘ Prometheus šŸ‡øšŸ‡¬
šŸ‘‘ Prometheus šŸ‡øšŸ‡¬ - avatar