Page Reload Button
Give users a reset switch. This script provides a simple one-click way to reload the current document, effectively restarting any scripts or clearing form inputs.
Current Timestamp: 11:12:02
Copy the Script
<script>
function refreshPage() {
window.location.reload();
}
</script>
<button onclick="refreshPage()">Reload</button>
Frequently Asked Questions
Standard `location.reload()` (or `reload(false)`) reloads from the cache if possible. `location.reload(true)` forces a hard reload from the server (bypassing cache), though support varies in modern browsers.
Yes. Use `setTimeout(function(){ location.reload(); }, 5000)` to refresh the page automatically every 5 seconds.
It helps users reset forms, restart games, or fetch updated data without needing to find the browser's refresh icon.