Avatar of Pedro Chagas
Pedro Chagas
Flag for Portugal

asked on 

JavasCript or Jquery - Remove Function

Hi E's,
I need to know how to remove a function or to stop them:
I have a function that runs in each 5 seconds:
function check() {
// do sometyhing   
setTimeout("check()", 5000);

Open in new window

Rather there is a solution to stop the execution of the function, possibly not being possible, remove.

The best regards, JC
JavaScriptjQueryWeb Development

Avatar of undefined
Last Comment
Uros Gaber

8/22/2022 - Mon