I'm setting up a system in small museum where a number of web sites will be run locally on a PC with a touchscreen running (I assume) Windows & IE7.
I need every page to have a timed redirect to the homepage, so that when a visitor leaves, everything will reset, ready for the next person. Which I can do OK with Javascript.
I'd like to be able to warn people however, that the redirect is imminent. Some people may take too long to read the page and it will time out on them.
Ideally, I want a dialogue box to pop up that gives the user the opportunity to reset the timer before the redirect happens. This I know is also possible with Javascript and I should be able to do it.
The problem is though, if the visitor has gone, the dialogue box will remain and the redirect will not happen.
I'd ideally like the dialogue box to close automatically after a set time and the page to redirect.
Is this possible? If so, how?
Any help appreciated.
Is it's not possible, I suppose I'll have to make the redirect time long enough so it doesn't time out too soon for anybody and have a big 'Home' button on every page.
Less elegant, but it will obviously work.