need delay redirect program

Discussion in 'C#' started by xbegin, Nov 7, 2008.

  1. #1
    Hello
    i need a redirect program with 5sec delay , it can redirect old page to new page , i used javascript and php for this function but IE and Firefox can't find referral link(i guess because of 5sec delay) but Opera can find referral link in new site , maybe this problem can solve with cgi or asp , i hope
    please advice me with codes
    regards
     
    xbegin, Nov 7, 2008 IP
  2. hansab

    hansab Active Member

    Messages:
    162
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    58
    #2
    is this what you want ?

    use meta tag of refresh

    <meta http-equiv="refresh" content="2;url=newpage.html">

    u can use asp as well

    <meta http-equiv="refresh" content="2;url=<%=pgvar%>">

    where pgvar is variable which has value like this "thepageyouwanttoforward.html"

    hope that answered your question.
     
    hansab, Nov 7, 2008 IP
  3. mahacan

    mahacan Banned

    Messages:
    207
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Use hansab's code. If you want to track the referral then put your tracking code also into old page.
     
    mahacan, Nov 7, 2008 IP