Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
You mean, anywhere, even if outside the browser window ? Or in the browser window, but in a different tab ?lwfg said:Is there a way of detecting any user acivity on a screen
I can not imagine a reason for doing that
And the next step will be to add password protection to the screensaver ?Dan said:How about a screensaver for a JavaScript app in full-screen or Kiosk mode?
[gray]// starting from the moment of page loading...[/gray]
window[teal].[/teal]onload[teal]=[/teal][b]function[/b][teal]()[/teal] [teal]{[/teal]
[gray]// ... display warning after 9 minutes[/gray]
window[teal].[/teal][COLOR=darkgoldenrod]setTimeout[/color][teal]([/teal][b]function[/b][teal]()[/teal]
[b]with[/b] [teal]([/teal]document[teal].[/teal][COLOR=darkgoldenrod]getElementById[/color][teal]([/teal][green][i]'warning'[/i][/green][teal]))[/teal] [teal]{[/teal]
innerHTML[teal]=[/teal][green][i]'You will be automatically signed out shortly. To keep working, use Save Draft now.'[/i][/green]
style[teal].[/teal]display[teal]=[/teal][green][i]'block'[/i][/green]
[teal]}[/teal]
[teal]}[/teal][teal],[/teal][purple]9[/purple][teal]*[/teal][purple]60[/purple][teal]*[/teal][purple]1000[/purple][teal])[/teal]
[gray]// ... then reload & sign out after 10 minutes[/gray]
window[teal].[/teal][COLOR=darkgoldenrod]setTimeout[/color][teal]([/teal][b]function[/b][teal]()[/teal] [teal]{[/teal]
location[teal].[/teal]href[teal]=[/teal][green][i]'/logout/'[/i][/green]
[teal]}[/teal][teal],[/teal][purple]10[/purple][teal]*[/teal][purple]60[/purple][teal]*[/teal][purple]1000[/purple][teal])[/teal]
[teal]}[/teal]