How to find out if the BACK button has been clicked

samsmithnz said:
Why? Why do you need to know?

I have just done some more testing and finally got my problem resolved.

I have an application that has a link to printer-friendly version page. Instead of using RESPONSE.REDIRECT to redirect my page to the printer-friendly page, I used javascript to change DOCUMENT.LOCATION. When I used DOCUMENT.LOCATION, it added two entries in the history instead of one. Therefore, when I clicked on BACK button, I was stuck with the printer-friendly page. Now that I use RESPONSE.REDIRECT, the history looks fine and I can return to the proper page.

Thank you for your response.
 
Back
Top