Script to find the page ideal time
===

If a user is not performing any task on a page i.e the page is ideal, is there any way to capture the time the page was ideal or nothing was done on it. I am using JSP, struts1, JQM, JS in my project.

Urgent requirement please help.