What's the best way to use JS to refresh the page? or How can I force a page refresh with JS?

20 Replies, 934 Views

pro tip: if u wanna js refresh the page without cache, use:
```js
window.location.href = window.location.href + '?nocache=' + new Date().getTime();
```

works every time for me. `location.reload()` can be flaky depending on the browser.

Messages In This Thread



Users browsing this thread: 1 Guest(s)