Hi PrabathSl,
Take a look at this one: http://www.w3schools.com/js/js_timing.asp. There is no
You could do it like this: while a event is fired for instance a mouse click, reset the timer by clearInterval() and setInterval(),
set the milliseconds as 2 mins.
To set a listener for mouse movement is also necessary, you have to consider all the actions that may happen on the screen, basically they are mouse and keyboard.
Best Regards,
--James
<THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
Thanks
MSDN Community Support
Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.