- Chat applications and websites.
- Hospital managements system.
- Railway reservations and train reservations system.
- Live TV channels websites.
Those are some examples of websites which may be use refresh a page technique.
Use the above code with body tag. Execute onLoad event so your function loads when page opens.
<!-- Below line will refresh page after 10 seconds. --> <body onload="timer = setTimeout('auto_reload()',10000);">
Change 10000 to desired value 10000=10 seconds.
Meta Tag Method
To refresh the page using meta tag use the following single line of code. This will refresh page after 30 seconds.
<head> <meta http-equiv="refresh" content="30" /> </head>