To reload the page after 5 seconds (5000 milliseconds) using JavaScript, add the following to the bottom of the page:
<script type="text/javascript"> setTimeout(function () { location.reload(true); }, 5000); </script>
As Greg Hewgill points out, you can also do this with the meta refresh tag:
<meta http-equiv="Refresh" content="5">
Strictly speaking, you still need the <html> and <body> tags. Some browsers may display the page correctly without them, but you can enable them.
pkaeding
source share