Home: Perl Programming Help: Intermediate:
Disable going back?



dlny
Deleted

May 4, 2000, 5:55 AM


Views: 1463
Disable going back?

I am trying to write a script so that if they hit the back button and go to a page that they've been to already it will send them back one more time. I am tracking pages visited by going through a cgi page first. But this doesn't allow them to hit the back button. Any help or info would be appreciated.

Thanks.


Jasmine
Administrator

May 4, 2000, 8:56 AM


Views: 1463
Re: Disable going back?

Unfortunately, there is no way to determine if someone hit the "back" button, using javascript or other scripting languages. When a user hits the back button, the page is displayed from cache, unless the pragma: no-cache is used (this pragma is not enforced by all browsers).

The extend of the webmaster's control over the browser is limited to the "displayable area" of the browser, not any of the functions outside of the "web page area".


dlny
Deleted

May 4, 2000, 1:25 PM


Views: 1463
Re: Disable going back?

Could you please check out www.capsugel.com. Go under products. Select anything. Any selection that is chosen will first go to a cgi page to log their progress in a text file than forwards them on to the page they actually want. Could there possibly be another cgi way to do this.