Sunday, May 26, 2013

HTML meta tag redirect to other page

This is a very simple way to redirect your page to other website by using the HTML meta tag at the header level.

Example 1: 

This example will redirect to http://www.yourdomain.com/index.html after the page is loaded. 

<html>
<head>
<META HTTP-EQUIV="REFRESH" CONTENT="0; url=http://www.yourdomain.com/index.html"/>
</head>
<body>
</body>
</html>

Example 2: 

This example will redirect to http://www.yourdomain.com/index.html after the page is loaded for 5 seconds. 

<html>
<head>
<META HTTP-EQUIV="REFRESH" CONTENT="5; url=http://www.yourdomain.com/index.html"/>
</head>
<body>
</body>
</html>

No comments:

Post a Comment