To understand it in better way you can Refresh Page.
Try the following example. It shows how to refresh a page after every 5 seconds. You can change this time as per your requirement.
This page will refresh every 5 seconds.