Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Reload the Current Page Using JavaScript</title> <script> function reloadPage(){ location.reload(true); } </script> </head> <body> <p>Click the following button to reload this page, without using the cache.</p> <button type="button" onclick="reloadPage();">Reload page</button> </body> </html>