You can use the
reload() method of the
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.