click on back button will submit request or it will take page from history. i want to check when user click browser back button then it should redirect to another page. can this possible.? i need urgent reply, thanks in advance. lbrd
I don't understand the question. Clicking the back button will take the user to the previous page. You can't make it do anything different.
hi Mad, thanks for giving me reply, but question is when we clicked on back it will take previous page. but how this previous page will load, from history or it will submit a request. becos i am passing some hidden parameter in each request. so do i get in case of back button click.becos if it will load previous page after form submit i will get those hidden parameter value but if it will load this page from history then i will not get those hidden field value. thanks for reply
The page shouldn't reload but you can choose how to handle this by using the cache control headers in php. Use private or must-revalidate.
Hi Mad i am back again, now i asked one more question in the same post. which is regarding can i get browser back button event or something on which i can forward page to my login page. need urgent reply, lbrd.
Using Firefox: If its a static page and its in the cache, it just loads from history. But if a form was submitted to the page, the browser will submit request!