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

20 Replies, 1180 Views

`location.reload()` is the standard way to js refresh the page, but if it’s not working, try adding `true` as a param to force a hard reload (skips cache).

`window.location.href = window.location.href` works too, but it’s more of a hack.

If you’re still stuck, check if there’s an error in the console—sometimes other scripts block it.

Messages In This Thread



Users browsing this thread: 1 Guest(s)