1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

redirecting

Discussion in 'Software Development' started by segmented, Oct 17, 2003.

Thread Status:
Not open for further replies.
  1. segmented

    segmented Thread Starter

    Joined:
    Apr 5, 2003
    Messages:
    24
    How can I make a page redirect to another page automatically? For example, the user opens index.html, and browser automatically redirected to home.html . Using only HTML or Javascript.
    Thanks
     
  2. Mithrilhall

    Mithrilhall

    Joined:
    Mar 28, 2001
    Messages:
    781
    add this in the head section:

    <meta HTTP-EQUIV="Refresh" CONTENT="0;URL="page_to_redirect_to">
     
  3. khaki

    khaki

    Joined:
    Jul 26, 2003
    Messages:
    2,431
    hi segmented....

    here is a javascript version:


    <html>
    <head>
    <title></title>
    <script language="JavaScript">
    <!--
    window.location="www.yourSite.com/home.html"
    -->
    </script>
    </head>
    <body>
    <a href="www.yourSite.com/home.html">Redirect me</a>
    </body>
    </html>


    :) khaki
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/172561

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice