Jump to content
Xtreme .Net Talk

How to find out if the BACK button has been clicked


Recommended Posts

Posted
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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...