Menu ▼



Posted By :
avatarmrkraju
Total Views : 275

html redirect

By using html meta tag we can redirect one web page to another web page, without using javascript, jquery or any other scripting language.

Syntax

<meta http-equiv="refresh" content="5; url=http://www.dotnetlearners.com/" />

http-equiv="refresh" -> indicates the page need to be refresh
content="5; url=http://www.dotnetlearners.com/"
5 -> indicates the page need to be refresh after 5 seconds
url -> indicates to which page it has to be redirected after the page refresh.

Example

html-redirect

Source Code

<html>
<head>
    <title></title>
    <meta http-equiv="refresh" content="5; url=http://www.dotnetlearners.com/" />
</head>
<body>
    <h3>
        In 5 seconds this web page will be redirect to "Dotnet Learners" website....</h3>
</body>
</html>





comments powered by Disqus


Search dotnetlearners.com