Auto-redirecting Methods

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Indiabook
    Junior Member
    • Jul 2004
    • 5

    Auto-redirecting Methods

    Auto-redirecting is the technique of automatically sending a site visitor to another page once s/he has landed on a page. How it can be done Can anybody tell me the codes for it
  • Indiabook
    Junior Member
    • Jul 2004
    • 5

    #2
    There are few methods like:

    The "Meta Refresh Tag" method

    <head>
    <meta http-equiv="refresh" content="5;url=pagename.html">
    </head>



    The "Javascript" method

    <head>
    <script language="javascript"><!--
    location.replace("pagename.html")
    //-->
    </script>
    </head>

    The "Form" method

    <head>
    <script language="javascript"><!--
    document.myform.submit()
    //-->
    </script>
    ...other head section stuff (Title, Description,etc.)...
    </head>
    <body>
    <form name="myform" action="pagename.html" method="get"></form>
    ...rest of the page...

    More information you can get at:

    This website is for sale! seo-lab.com is your first and best source for information about seo lab. Here you will also find topics relating to issues of general interest. We hope you find what you are looking for!
    Last edited by megri; 07-31-2004, 07:23 PM.

    Comment

    Working...