No. There is some confustion. This is how it calls.
Y -> X__submit__ ASP__submit______X
Similarly
Z -> X__submit__ ASP__submit______X
Thanks
Main Topics
Browse All TopicsHi All,
I have a html page X which calls a asp page using auto html form
submit which in turn calls the html page X back using auto form submit.
All these happens in just one click on the link to html page X in html page Y.
Everything is cool. But, the problem is when the user click "BACK" button
on the brower, he is thrown back to html page X. He wants to go the html page Y (where is originally came from).
I tried using location.replace(location)
Any thoughts?
Also, the link to html page X is on multiple html pages like html page Z etc.
Thanks in advance.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: simonetPosted on 2008-06-03 at 13:28:25ID: 21704231
The browser is actually right.
mit
ascript_tu torial/Edi tor/ ajax_t utorial.ht m jax/ajax.j s.html jax/ try/moo.aj ax
This is what happens:
Y -> X -------------> Z -------------------> X
________submit_________sub
when the user is in the last page X shown above, the back button references page Z.
One way to achieve this is:
since you want to stay on page X while seaminglessly submitting a form, and still let the user browse back to page Y, I suggest you to use AJAX. Since with AJAX only the actual data will be posted, and not an entire page, the location history will not be touched.
There are a lot of AJAX tutorials out there with all the code you need (very little - if any - development required).
http://www.c-point.com/jav
http://www.hackorama.com/a
http://www.hackorama.com/a
http://www.mad4milk.net/en
Another way is to disable the navigation buttons on the browser's window, and let the site's hyperlinks dictate the navigation.
I still think AJAX is the best alternative for this.