Here is an example using thejh’s instructions
You can store a reference id to any setInterval or setTimeout. Like this:
var loop = setInterval(func, 30);
// some time later clear the interval
clearInterval(loop);
More Related Contents:
- Download the text over image using jquery
- Javascript: How to force the user to click on select
- Dynamic page load can’t load Java with page
- jQuery document.createElement equivalent?
- Difference between val() and text()
- How to get a number of random elements from an array?
- How do I create a link using javascript?
- Export html table data to Excel using JavaScript / JQuery is not working properly in chrome browser
- Check with jquery if div has overflowing elements
- jQuery UI accordion that keeps multiple sections open?
- how to make a jquery “$.post” request synchronous [duplicate]
- Responsive horizontal page sliding
- How to change active class while click to another link in bootstrap use jquery?
- Selecting multiple from an html select element without using ctrl key
- Scale element proportional to Background Cover with jQuery
- how to assign javascript variable value to php variable
- Embed HTML5 YouTube video without iframe?
- Anchor tag download attribute not working :Bug in Chrome 35.0.1916.114
- Detect browser character support in javascript?
- how to resolve iframe cross domain issue [duplicate]
- How can I make a button redirect my page to another page? [duplicate]
- Uncaught ReferenceError: $ is not defined error in jQuery
- Preloading images in HTML
- Waiting for dynamically loaded script
- Change placeholder text
- How to scroll a select list with JavaScript or jQuery?
- Placeholder for contenteditable div
- Center an Image vertically and horizontally using CSS
- Change background on button click, using CSS only? [duplicate]
- Set value to currency in