Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>JavaScript Automatic Page Redirect</title> <script> function pageRedirect() { window.location.replace("https://www.tutorialrepublic.com/"); } setTimeout("pageRedirect()", 10000); </script> </head> <body> <p><strong>Note:</strong> You will be redirected to the tutorialrepublic.com in 10 sec.</p> </body> </html>