javascript - How to determine if the user has not operated within 3 minutes and then pop up a prompt box?
给我你的怀抱
给我你的怀抱 2017-05-19 10:42:16
0
2
645

Now the project has a requirement. On the PC page, if the user is idle for 3 minutes (for example, without moving, clicking the mouse, or pressing the keyboard), a corresponding prompt box will pop up.

给我你的怀抱
给我你的怀抱

reply all (2)
为情所困

ifvisible.js
You can try this plug-in, which is specially used to monitor whether the user is idle or active, and you can set the idle time.

    刘奇

    Use setTimeout, dom to monitor events, if there is an action, clear the timer, and then redefine the timer

      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!