This can be accomplished without javascript, with this metatag:
<meta http-equiv="refresh" content="5" >
where content =”5″ are the seconds that the page will wait until refreshed.
But you said only if there was no activity, what kind for activity would that be?
More Related Contents:
- How to make page loaders/animations/transitions
- Better to have ajax inside or outside for-loop or for-loop at the server side? Javascript [closed]
- How to manage a redirect request after a jQuery Ajax call
- Can scrapy be used to scrape dynamic content from websites that are using AJAX?
- Access Control Request Headers, is added to header in AJAX request with jQuery
- jQuery XML error ‘ No ‘Access-Control-Allow-Origin’ header is present on the requested resource.’
- How to get progress from XMLHttpRequest
- JavaScript/jQuery to download file via POST with JSON data
- Calling a JavaScript function returned from an Ajax response
- Detecting Back Button/Hash Change in URL
- Jquery/Ajax call with timer
- “Mixed content blocked” when running an HTTP AJAX operation in an HTTPS page
- How to refresh page on back button click?
- jQuery iframe load() event?
- Refresh a Div that has a Google ad inside it
- How to load json into my angular.js ng-model?
- How to send multipart/form-data form content by ajax (no jquery)?
- Dynamically refresh a part of the template when a variable is updated golang
- $http.get(…).success is not a function
- Why my $.ajax showing “preflight is invalid redirect error”?
- How can I get all a form’s values that would be submitted without submitting [duplicate]
- AJAX, Subdomains, and SSL
- responseXML always null
- How to upload string as file with jQuery or other js framework
- how to schedule ajax calls every N seconds?
- Empty “for” loop in Facebook ajax
- Phantom JS synchronous AJAX request : NETWORK_ERR: XMLHttpRequest Exception 101
- How to submit checkboxes from all pages with jQuery DataTables
- Hook AJAX in WordPress
- Python Flask Cors Issue