JavaScript - Refresh or reload a page
One line of JavaScript that reloads the current page from the server.
1 min read#JavaScript
One line reloads the current page. Passing true forces a reload from the server instead of the browser cache.
js
document.location.reload(true);