Need help....how to turn off Javascript function with onclick button...? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

Need help....how to turn off Javascript function with onclick button...?

can it be done without using clearInterval() ?

18th Aug 2017, 11:54 AM
Yen
Yen - avatar
2 Réponses
+ 2
here is the example of function; (function() { }(); is it possible to stop it from execution when onclick?
23rd Aug 2017, 6:14 AM
Yen
Yen - avatar
0
sorry...I type wrong it should be (function() { })(); This is an "immediately-invoked function expression". No HTML events (onclick, onload...etc..) needed. It been used to freeze header <th> in HTML table. (like excel freeze panes).
23rd Aug 2017, 6:55 AM
Yen
Yen - avatar