RedditDiggFacebookTwitterFlipboardPinterestLinkedinLineThe only real way to stop an ongoing Javascript Function from outside the function is to set a var that is checked inside the function and then trigger a return See example below on how to stop an ongoing Javascript…