How to redirect an user with a URL in HTML?

 Posted by Pgayath on 9/21/2012 | Category: HTML 5 Interview questions | Views: 1489 | Points: 40

The <meta> tag with "http-equiv" and "content" attribute is used to redirect an user automatically to a website.

Let us see an example with dotnetfunda site.


<meta http-equiv="Refresh" content="5;url=" />
<h1>Sorry! We have moved!</h1>
<h2>The new URL is: <a href=""></a></h2>
<p>You will be redirected to the new address in five seconds.</p>
<p>If you see this message for more than 5 seconds, please click on the link above!</p>

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response