Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • What Are Meta Refresh or Re-direct Tags?

    • 1
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 1.81k
    Comment on it


    About Meta Refresh or Re-direct Tags

     

    Meta Refresh is a process which gives instructions to a web browser to refresh the current web page or frame automatically after a specified interval of timeframe, through the use of an HTML meta element. The meta refresh or redirect tag is a meta which is defined by http-equiv tag. When this meta tag is inserted into the header of an HTML page, then it will automatically lead to refresh the current webpage within the visitor's browser after a given number of timeframe which have been specified in the form of number of seconds that have been passed after the initial document has loaded. Its prime function is to basically redirect the visitor to the new web page. The web developer can easily specify the new page to be re-directed to and the number of seconds that must pass before the new page is being loaded. The meta redirect or refresh tag is specified in the form mentioned below:

     

    <meta http-equiv="Refresh" content="4;url=http://www.domain.com/link.html">

     

    In the tag mentioned above, the number of seconds written as 4 can be substituted by any number like 5, 6, 7 and you can also substitute any link URL in place of http://www.domain.com/link.html.

    Usability of Meta Refresh Tags

     

    Meta-refresh tags are used in some authorized situations, where there is a need to providing an updated information to dynamic web pages or implementing site controlled navigation of a website without JavaScript. Many popular and big websites use meta refresh tags to to automatically update the news or status within the webpages, especially when dependencies on JS and redirect headers are unwanted.

     

    For Example:

     

    Place inside <head> to refresh page after 5 seconds:  

     

    <meta http-equiv="refresh" content="5">

     

    Redirect to http://XYZ.com/ after 5 seconds:  

     

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

     

    Redirect to http://XYZ.com/ after 10 seconds:  

     

    <meta http-equiv="refresh" content="10; url=http://XYZ.com/">


    Hope you find the information mentioned above quite knowledgeable. Will surely share more about some other important meta tags with detailed information in my coming blogs.

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: