What's the best way to reload a web page using JavaScript? or How can I reload a web page with JavaSc

18 Replies, 809 Views

If you’re just testing, `location.reload()` is fine. But for production, consider if you *really* need a full reload.

Sometimes `window.location.hash = ‘#’ + Math.random()` can force a refresh without a full reload. Weird trick, but it works!

Also, check out Stack Overflow for reload web page javascript edge cases—tons of solutions there.

Messages In This Thread



Users browsing this thread: 1 Guest(s)