How do I stop function started by setTimeout call

Yes, you may be right.
Actually there was another problem, which was due to JS being so different in its Var declaration compared to like Php. That is from this experience I found out that in JS if you declare a Variable outside functions, then all functions will have scope to this variable without it being passed to them! WOW! This is not at all how it is in other programming languages. And in JS not can the functions see the variable declared outside of the functions but they can change it too which change will have global scope too! Now mind you, I actually like this alot, since it makes for easier coding, but it is totally different compared to Php where a variable declared outside of a function, well given value, has NO scope inside functions!

Anyway, really good learning experience.
And hey we did this whole thing without any JQuery :slight_smile: