Tutorials / HTML / Meta Tags / Redirect a webpage to another page < you are here. | < share |
We're going to show you how to make one page change into another after a certain amount of time.
This can be useful if the first page is under construction, and you don't want people to see it until it is finished.
You can simply redirect them from the first page to another page using the <meta http-equiv="refresh" > code on the first page, like this:
<meta http-equiv="refresh" content="0;url=secondpage.html">
When you go to the first page, it will redirect you to secondpage.html before you see the first page!
Let's make a page to go to called "underconstruction.html"
<html> <head> <title>Under Construction</title> </head> <body> This page is under construction. <br>Please try later. </body> </html>
<html>
<head>
<title>My Web Page</title>
<meta http-equiv="refresh"
content="0;
url=underconstruction.html">
</head>
<title>My Web Page</title>
<meta http-equiv="refresh"
content="0;
url=http://www.google.com">
</head>
<title>My Web Page</title>
<meta http-equiv="refresh"
content="3;
url=http://www.google.com">
</head>
you might like to try these tutorials too: