title: How to reset setInterval function on event click on popup close
body: <pre><code>            &lt;script&gt;
                  $(document).ready(function () {
                      setInterval(function () {
                          $.magnificPopup.open({
                              items: {
                                  src: '#test-popup'
                              },
                              type: 'inline'
                          });
                      }, &lt;?php echo $time_popup; ?&gt;);
                  });
              &lt;/script&gt;
  </code></pre>
  
  <p>This is my script. I try to reset set interval function, when click close to popup. I use magnific popup, try with <a href="https://www.w3schools.com/jsref/met_win_clearinterval.asp" rel="nofollow noreferrer">this</a>, without result.</p>