reload() method of the
Location object is used to reload the current web page.
Here is an example:
You can also pass an optional boolean parameter to
reload() to force the browser to reload the page from the server:
If you pass the
false value or skip it entirely, the browser may reload the page from its cache.
Location object properties and methods.