Results 1 to 6 of 6

Thread: Redirect

  1. #1

    Thread Starter
    Addicted Member rinoaheartilly's Avatar
    Join Date
    Oct 2001
    Location
    Cymru
    Posts
    204

    Redirect

    Whats the code to redirect someone to a different web page?



  2. #2
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    HTTP header:
    Location: http://www.google.com
    or a relative URL. What language are you using?
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  3. #3

    Thread Starter
    Addicted Member rinoaheartilly's Avatar
    Join Date
    Oct 2001
    Location
    Cymru
    Posts
    204
    html



  4. #4
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    Put this in the head:

    Code:
    <meta http-equiv="refresh" content="5; url=Home.htm">
    Change the 5 to the seconds you want, and the url to, erm the URL you want I should mention that this doesn't work on every browser so make sure you provide a link too. You could also add a JavaScript to redirect the page too, to add extra security

  5. #5
    Fanatic Member punkpie_uk's Avatar
    Join Date
    Sep 2001
    Location
    UK
    Posts
    645
    on method of acheiving this in javascript: -

    Code:
    document.location.href='page2.html';
    SPREAD THE WORD!!! Are You Lee McCormick? Because I Am



    Lee M McCormick
    [email protected]

    Lee McCormick.com - Live
    Dynamically Webbed.com - In development but live

  6. #6
    New Member
    Join Date
    May 2002
    Location
    NY
    Posts
    2
    another method

    <script>window.location=URL</script>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width