There is a Timeout function that I'm calling in the OnLoad in the Body tag.
I want the function to start if a certain variable is false. This variable is defined as 'false' by default but later if a button is clicked on it turns as 'true'.
Therefore my function will always start because at the beguinning the variable is always false. What can I do to make the function check the current state of the variable? Or is there another way to do what I want to?
If my explanation is not clear, please let me know.