how to hide a div after some time if no activity occurs on that div.

Posted by snell on Stack Overflow See other posts from Stack Overflow or by snell
Published on 2010-06-03T07:37:47Z Indexed on 2010/06/03 7:44 UTC
Read the original article Hit count: 202

Filed under:
|

hi folks,

Am trying to hide a div when the user doesn't click any button on it for 15 seconds. I know how to hide and display the div by using element.style.display = 'none'; but am not able to understand how to calculate the time after last activity on the div.

Regards, Snell

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about div