reload the page with javascript

Sometimes there’s a need to reload the page with JavaScript. There’s a built in method for that! Just use:

window.location.reload()

Leave a Reply

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