How to stop or change the Javascript function when clicking on Overflow-y?

  • 0
    I have a function:

    $(document).ready(function() {
          update();
          setInterval(update, 100);
      });


    How to make it so that when you click on & lt; div class = "inner" id = "inner" & gt; & lt; / div & gt; or preferably on its Overflow-y, stop function setInterval (update, 100); or change the timer for a longer time?
    JavaScript Nora Wright, Jun 17, 2019

  • 1 Answers
  • 0
    you can stop something like this



    change the interval like this

    Aubrey Farrell

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!