You can instruct the browser to automatically reload a web page at specific intervals in order to display its latest version.
Steps:
- Use the following meta tag in the <head> section of your webpage:
- Apply the following configurations:
- Set the reload period. The number 5 in this example can be changed to the preferred number of seconds for each reload.
- It is also possible to instruct the browser to fetch a different URL when the page is refreshed. To do so, use this variation of the meta tag:
Note: Meta refresh may impair the web browser's "back" button in some browsers including IE 6 and older.
Note: Auto refreshing a page may impact your data transfer because every time the page is reloaded, data transfer is incurred.
code1
<meta http-equiv="refresh" content="5" >
code2
<meta http-equiv="refresh" content="5;URL='http://yoursite.com/'">