Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>JavaScript Reload a Page Dynamically</title> </head> <body> <script> function forceReload() { window.location.reload(true); } </script> <button type="button" onclick="forceReload();">Reload Page</button> <p><strong>Note:</strong> Open the output in a new tab by clicking the arrow next to "Show Output" button then click the above button to see how it works.</p> </body> </html>