Question
How do I stop a function
Hello:
I have created a function and I am calling it under a button click event.
For example; *** showSlides(); ****
When I click the button, the function activates just as I want it to.
However, the problems is that I do not know how to exit, end, or stop the function. In other words, I want to deactivate the function from another button but do not know what codes to place with the function that will cause the function to end.
I have tried, for about 3hours now, many possibilities that are not working. I am out of solutions and need some help.
I have created a function and I am calling it under a button click event.
For example; *** showSlides(); ****
When I click the button, the function activates just as I want it to.
However, the problems is that I do not know how to exit, end, or stop the function. In other words, I want to deactivate the function from another button but do not know what codes to place with the function that will cause the function to end.
I have tried, for about 3hours now, many possibilities that are not working. I am out of solutions and need some help.