title: Stop setInterval call in JavaScript
body: <p>I am using <code>setInterval(fname, 10000);</code> to call a function every 10 seconds in JavaScript. Is it possible to stop calling it on some event? </p>
  
  <p>I want the user to be able to stop the repeated refresh of data.</p>