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();
Feel free to share if you found this useful ๐.
melvingeorge-me.hashnode.dev1 min read