Answers

Nov 28, 2006 - 09:51 PM
Due to the nature of history.back() it seems impossible.
The method history.back() simply simulates a click on the browser's back button, therefore the result should be exactly the same and the origin of the command unrecognizable. To me it also makes sense that when the user goes back he doesn't expect something new to happen, that didn't happen last time he visited that page.
However, to send the user back to the previous page I have successfully used something like this:
location.replace(document.referrer);
With this command you will be able to append a querystring that you can analyse on the previous page to get information about the call.
The method history.back() simply simulates a click on the browser's back button, therefore the result should be exactly the same and the origin of the command unrecognizable. To me it also makes sense that when the user goes back he doesn't expect something new to happen, that didn't happen last time he visited that page.
However, to send the user back to the previous page I have successfully used something like this:
location.replace(document.referrer);
With this command you will be able to append a querystring that you can analyse on the previous page to get information about the call.

Nov 28, 2006 - 10:02 PM
Hi,
Thanks for ur response.
I dont want to send the user back to previous page.....what i want is
I doing some operations in my application.... that time i am clicking IE
back button and i am comming to the previously visited page Is there
any way now i can no that i have used the browser back button......
Thanks for ur response.
I dont want to send the user back to previous page.....what i want is
I doing some operations in my application.... that time i am clicking IE
back button and i am comming to the previously visited page Is there
any way now i can no that i have used the browser back button......

Jan 06, 2007 - 06:12 AM
You can use the referer to check that he came from a page somewhere after in your flow of pages. Maybe that will fix your problem.

Jun 04, 2007 - 08:48 PM
This issue can be closed
Thanks
Thanks

Jun 06, 2007 - 04:16 AM
I have closed the question, and joined the previous user you created, mathangi with your current one.
You can distribute the points and close the question yourself, if you're logged in and looking a question that you asked.
Quomon Admin
You can distribute the points and close the question yourself, if you're logged in and looking a question that you asked.
Quomon Admin
Add New Comment