Use the JavaScript location. reload() Method
You can simply use the JavaScript location. reload() method to refresh or reloads the page. This method optionally accepts a Boolean parameter true or false . If the parameter true is specified, it causes the page to always be reloaded from the server.