bossong
06-02-2003, 08:43 AM
I'm having some difficulty getting some javascript to work and I'm wondering if it's possible at this point. Here's my scenario:
I have 3 web pages I'll refer to as A, B, and C. I start on page A where there's a link to page B. All page B does is redirect you to page C (I don't want to get into details but I need page B). If the user hits the BACK button from page C, I want them to be returned to page A. Please note that page A could be a number of pages but page B and page C will always be the same.
Since I know the URL of page C, I'm trying to determine a match within my script on page B but have had no success. I've tried several things, usually revolving around document.referrer. I'm finding out that document.referrer for page B will always give me page A - even after hitting the BACK button on page C.
Bottom line: Page B needs to determine where you came from so it can redirect you to the proper page. I need this to work in IE6 and Netscape 6+.
Any assistance would be greatly appreciated.
Bill
I have 3 web pages I'll refer to as A, B, and C. I start on page A where there's a link to page B. All page B does is redirect you to page C (I don't want to get into details but I need page B). If the user hits the BACK button from page C, I want them to be returned to page A. Please note that page A could be a number of pages but page B and page C will always be the same.
Since I know the URL of page C, I'm trying to determine a match within my script on page B but have had no success. I've tried several things, usually revolving around document.referrer. I'm finding out that document.referrer for page B will always give me page A - even after hitting the BACK button on page C.
Bottom line: Page B needs to determine where you came from so it can redirect you to the proper page. I need this to work in IE6 and Netscape 6+.
Any assistance would be greatly appreciated.
Bill