Results 1 to 2 of 2

Thread: Document.redirect

  1. #1
    Join Date
    Dec 1969

    Default Document.redirect

    Suppose I&#039;ve got three pages a.asp, b.asp and c.asp. <BR><BR>I want a user on page a to click a link and go to page b for three seconds and then automatically go to page c. This is fine and the script was easy. <BR><BR>The problem is if a user hits the "back" button on his browser from page c he goes to page b and in three seconds goes back to page c. I want to make it so that if the user gets to page b from any other page other than page a, the user is automatically returned to page a with no delay.<BR><BR>this is what I have so far, but it doesn&#039;t work<BR><BR>&#060;%@ LANGUAGE="VBSCRIPT" %&#062;<BR><BR>&#060;%<BR>if (document.referrer = "") <BR> DELAY_TIME = 2<BR> REDIRECT_URL = ""<BR>else<BR> DELAY_TIME = 0<BR> REDIRECT_URL = ""<BR>end if<BR><BR>%&#062;<BR><BR>Any ideas<BR>

  2. #2
    Join Date
    Dec 1969

    Default client/server-side confusion

    there is no document.referer in server-side script. it&#039;s available to client-side only<BR><BR>j

Posting Permissions

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