So let’s continue to learn…
First of all, let me introduced you to the location reload() method. This method will help us to reload the current web page.
That’s it. It will do the task. Actually, it is actually reloading the current document. This method is working as same as your browser refresh button does.
Actually, the location reloads method can take a parameter which is the forceGet parameter. It is set to false in default. But if you set it to true, it refreshes from the server-side. Below is the syntax:
I hope, you get the solution and implement it in your JS program. Happy coding…