DEV Community

Cover image for How to refresh a website using JavaScript?
MELVIN GEORGE
MELVIN GEORGE

Posted on • Originally published at melvingeorge.me

How to refresh a website using JavaScript?

Originally posted here!

To programmatically refresh a webpage, you can use the reload() method in the global window.location object using JavaScript.

// refresh a webpage
location.reload();
Enter fullscreen mode Exit fullscreen mode

Feel free to share if you found this useful 😃.


Top comments (0)