+ 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