how to hide a div after some time if no activity occurs on that div.
- by snell
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