How to reload a page using JavaScript?

You can use “reload ()” to reload the current document, ex:

location.reload();

Note:
The reload() method is used to reload the current document.

Or you can also use:

location.href = location.href

 

Add a Comment

Your email address will not be published. Required fields are marked *