If the user has no action for 2 minutes, then I will pop up a box to tell you that there is no operation, how can I achieve it? If you operate, it will not pop up.

if the user has no action for 2 minutes, then I will pop up a box to tell you that there is no action, how can I achieve it? If the operation does not pop up;

      var Time=setInterval(fun,2000);
        $("-sharpbig").click(function(){
            alert("");
            clearInterval(Time);
            
        });
        function fun(){
            alert("");
        }

but I won"t do it next time if I clear it like this. If the user still doesn"t do it, then I won"t have a pop-up box next time. How can I keep setInterval running? If I operate it, I won"t do it. I execute

if I don"t do anything.
Mar.24,2021

after clearing the timer, you can turn on


Why do you want to clear it? your requirement is to keep polling. User actions do not need to be cleared.


  var count = 0
  var Time=setInterval(fun,2000);
    $("-sharpbig").click(function(){
        alert("");
        count = 0
        
    });
    function fun(){
        count +=2
        if(count==120){
            alert('')
        }
    }

https://github.com/shawnmclea.


use for loop to rewrite (Override) code using DOM and jQuery.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e54cd1-43f98.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e54cd1-43f98.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?